aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-11-21 09:57:39 +0100
committerAleksi Hietanen <aleksi@vaadin.com>2017-11-21 10:57:39 +0200
commit94409e2221f14d2b592cfd41b17b000aed091600 (patch)
tree668210307559595ceaa2971185ce8e9b922c8b92 /server
parent927cb26c510dec1b7348760a65ca4e9522651960 (diff)
downloadvaadin-framework-94409e2221f14d2b592cfd41b17b000aed091600.tar.gz
vaadin-framework-94409e2221f14d2b592cfd41b17b000aed091600.zip
Remove unused imports (#10330)
Diffstat (limited to 'server')
-rw-r--r--server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/TreeGrid.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/components/TreeTest.java12
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java1
-rw-r--r--server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java2
10 files changed, 7 insertions, 16 deletions
diff --git a/server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java b/server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java
index 0038d0ca11..3216e92916 100644
--- a/server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java
+++ b/server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java
@@ -430,7 +430,7 @@ public class FileUploadHandler implements RequestHandler {
try {
return Long.parseLong(request.getHeader("Content-Length"));
} catch (NumberFormatException e) {
- return -1l;
+ return -1;
}
}
diff --git a/server/src/main/java/com/vaadin/ui/TreeGrid.java b/server/src/main/java/com/vaadin/ui/TreeGrid.java
index 2ff026a758..ba570a2160 100644
--- a/server/src/main/java/com/vaadin/ui/TreeGrid.java
+++ b/server/src/main/java/com/vaadin/ui/TreeGrid.java
@@ -27,7 +27,6 @@ import org.jsoup.nodes.Attributes;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
-import com.vaadin.data.BeanPropertySet;
import com.vaadin.data.HasHierarchicalDataProvider;
import com.vaadin.data.HasValue;
import com.vaadin.data.PropertyDefinition;
diff --git a/server/src/test/java/com/vaadin/tests/components/TreeTest.java b/server/src/test/java/com/vaadin/tests/components/TreeTest.java
index 10094dc8f0..d48109e669 100644
--- a/server/src/test/java/com/vaadin/tests/components/TreeTest.java
+++ b/server/src/test/java/com/vaadin/tests/components/TreeTest.java
@@ -1,5 +1,11 @@
package com.vaadin.tests.components;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+import org.junit.Test;
+
import com.vaadin.data.TreeData;
import com.vaadin.data.provider.TreeDataProvider;
import com.vaadin.event.CollapseEvent;
@@ -8,12 +14,6 @@ import com.vaadin.event.ExpandEvent;
import com.vaadin.event.ExpandEvent.ExpandListener;
import com.vaadin.server.ThemeResource;
import com.vaadin.ui.Tree;
-import org.junit.Assert;
-import org.junit.Test;
-
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertTrue;
public class TreeTest {
diff --git a/server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java
index 05e31fc0c1..63f639e313 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java
@@ -22,7 +22,6 @@ import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.data.provider.Query;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java
index 35f7647049..2f84974bd9 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java
@@ -20,7 +20,6 @@ import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.design.DeclarativeTestBaseBase;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java
index 9dcbb31246..437c6cb566 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java
@@ -20,7 +20,6 @@ import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.design.DeclarativeTestBaseBase;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java
index 408a7ca3b1..02755358b3 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java
@@ -17,7 +17,6 @@ package com.vaadin.tests.server.component.button;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.event.ShortcutAction.KeyCode;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java
index d6eeb13d84..73fd168b48 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java
@@ -17,7 +17,6 @@ package com.vaadin.tests.server.component.label;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java
index 2c830279e9..99d46b2730 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java
@@ -19,7 +19,6 @@ import java.io.IOException;
import org.jsoup.nodes.Element;
import org.jsoup.parser.Tag;
-import org.junit.Assert;
import org.junit.Test;
import com.vaadin.tests.server.component.abstracttextfield.AbstractTextFieldDeclarativeTest;
diff --git a/server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java b/server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java
index fc4c2ec0ea..c116c08146 100644
--- a/server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java
+++ b/server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java
@@ -2,8 +2,6 @@ package com.vaadin.tests.server.component.treegrid;
import java.lang.reflect.InvocationTargetException;
-import org.junit.Assert;
-
import com.vaadin.data.TreeData;
import com.vaadin.data.provider.HierarchicalQuery;
import com.vaadin.data.provider.TreeDataProvider;