]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove unused imports (#10330)
authorAhmed Ashour <asashour@yahoo.com>
Tue, 21 Nov 2017 08:57:39 +0000 (09:57 +0100)
committerAleksi Hietanen <aleksi@vaadin.com>
Tue, 21 Nov 2017 08:57:39 +0000 (10:57 +0200)
29 files changed:
client/src/main/java/com/vaadin/client/ui/FocusUtil.java
client/src/test/java/com/vaadin/client/VBrowserDetailsUserAgentParserTest.java
compatibility-server/src/test/java/com/vaadin/v7/data/util/AbstractContainerTestBase.java
compatibility-server/src/test/java/com/vaadin/v7/data/util/BeanContainerTest.java
compatibility-server/src/test/java/com/vaadin/v7/data/util/GeneratedPropertyContainerBasicTest.java
compatibility-server/src/test/java/com/vaadin/v7/data/util/IndexedContainerTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/calendar/CalendarBasicsTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/grid/GridSelectionTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/grid/declarative/GridHeaderFooterDeclarativeTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/grid/declarative/GridInlineDataDeclarativeTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/table/TableDeclarativeTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/textarea/TextAreaDeclarativeTest.java
compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/tree/TreeTest.java
server/src/main/java/com/vaadin/server/communication/FileUploadHandler.java
server/src/main/java/com/vaadin/ui/TreeGrid.java
server/src/test/java/com/vaadin/tests/components/TreeTest.java
server/src/test/java/com/vaadin/tests/server/component/abstractlisting/AbstractListingDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/abstractmultiselect/AbstractMultiSelectDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/abstractsingleselect/AbstractSingleSelectDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/button/ButtonDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/label/LabelDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/textarea/TextAreaDeclarativeTest.java
server/src/test/java/com/vaadin/tests/server/component/treegrid/TreeGridDeclarativeTest.java
uitest/src/main/java/com/vaadin/tests/components/abstractfield/IntegerFieldWithoutDataSource.java
uitest/src/main/java/com/vaadin/tests/components/table/AsyncPushUpdates.java
uitest/src/main/java/com/vaadin/tests/dd/DDTest6.java
uitest/src/main/java/com/vaadin/tests/vaadincontext/BootstrapModifyUI.java
uitest/src/test/java/com/vaadin/tests/components/grid/GridAriaRowcountTest.java
uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupTest.java

index 9a0a4ecea448ae258408e3294a7db7456497bd42..6fbbc5d9dfb8bbd65ec599f44c0087fca2e34afb 100644 (file)
@@ -102,16 +102,14 @@ public class FocusUtil {
         return focusableChildren;
     }-*/;
 
-    public static void focusOnFirstFocusableElement(Element parent)
-    {
+    public static void focusOnFirstFocusableElement(Element parent) {
         Element[] focusableChildren = getFocusableChildren(parent);
         if (focusableChildren.length > 0) {
             focusableChildren[0].focus();
         }
     }
 
-    public static void focusOnLastFocusableElement(Element parent)
-    {
+    public static void focusOnLastFocusableElement(Element parent) {
         Element[] focusableChildren = getFocusableChildren(parent);
         if (focusableChildren.length > 0) {
             focusableChildren[focusableChildren.length - 1].focus();
index 79d278acd16f4831b38fcb63d9ebd809763bc011..a1695bbde62066535d36da423eb33899698c28d2 100644 (file)
@@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.shared.VBrowserDetails;
index bfbf6d4eb29aaa2a41b6036601f969deb2401611..95f8d6ebd743f6b7a6b6e0342899e65040a71783 100644 (file)
@@ -10,8 +10,6 @@ import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
 
-import org.junit.Assert;
-
 import com.vaadin.v7.data.Container;
 import com.vaadin.v7.data.Container.Filterable;
 import com.vaadin.v7.data.Container.ItemSetChangeEvent;
index a7cf4402798b69aa85838728ef65557ddb3739af..32f3998cbf02938e03ef6252c426cf61e2440f6d 100644 (file)
@@ -13,7 +13,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Map.Entry;
 
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
index dfa537a98a75b339f2bd792286821aa24637ccb5..75cafb07be1ce926bf85497431a21144661bb404 100644 (file)
@@ -9,7 +9,6 @@ import java.util.List;
 
 import org.easymock.Capture;
 import org.easymock.EasyMock;
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.v7.data.Container;
index 79adeb821834cec964324ca5ff96adbc78e64d04..1a0f9a546e046f9d5c5f20ee6442d624c4d91282 100644 (file)
@@ -8,7 +8,6 @@ import java.util.List;
 
 import org.easymock.Capture;
 import org.easymock.EasyMock;
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.v7.data.Container.Indexed.ItemAddEvent;
index 38ee0928a0097829c46656f8ecd75af1e6be0a4e..a9d3f14248febc3b556e70ef9331680df4431104 100644 (file)
@@ -24,7 +24,6 @@ import java.util.GregorianCalendar;
 import java.util.Locale;
 import java.util.TimeZone;
 
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.v7.ui.Calendar;
index e02d7c5286191413758fe9767b10ae75c6c105d2..bac686e13819328723bc83d6092a73bf8200e314 100644 (file)
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue;
 
 import java.util.Collection;
 
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
index 87159d0024c53052791e022747dd07c597e4cb97..3f180f2b0c9bc03f0585d922fa4bf869f5401c67 100644 (file)
@@ -17,7 +17,6 @@ package com.vaadin.v7.tests.server.component.grid.declarative;
 
 import org.jsoup.nodes.Element;
 import org.jsoup.parser.Tag;
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.shared.ui.ContentMode;
index 28424b86d0387e7af7d0f8dc5cfcef908c2c4855..e21535d90349daf60edfdcc5da980aa28f2708ca 100644 (file)
@@ -15,7 +15,6 @@
  */
 package com.vaadin.v7.tests.server.component.table;
 
-import org.junit.Assert;
 import org.junit.Test;
 
 import com.vaadin.server.ExternalResource;
index fac607f83321b23b8cbbc85c954900133773f6fa..a1ec41bca7adcc1fe8ef1651b011e0d95eda7c6b 100644 (file)
@@ -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.design.DeclarativeTestBase;
index 94f6847a0f502735dc52099f8187e73db938c796..eac600e27049a055f1b0eeaa4b3b451154e05cce 100644 (file)
@@ -8,7 +8,6 @@ import static org.junit.Assert.assertTrue;
 import java.lang.reflect.Field;
 import java.util.HashSet;
 
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 
index 0038d0ca1111ba7545708a56e6b299004a0d1af6..3216e9291609354b4d5a648a23865b99e24e43af 100644 (file)
@@ -430,7 +430,7 @@ public class FileUploadHandler implements RequestHandler {
         try {
             return Long.parseLong(request.getHeader("Content-Length"));
         } catch (NumberFormatException e) {
-            return -1l;
+            return -1;
         }
     }
 
index 2ff026a7588af021107c4a81069c932f9b24830d..ba570a2160f40e02730f56ce53b43bed11105f6c 100644 (file)
@@ -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;
index 10094dc8f0914086a097eec6a9be6ed9c246488c..d48109e66983d9f5a8a813416e10827ae84d24f7 100644 (file)
@@ -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 {
 
index 05e31fc0c1644f9edb8f0533742bfb1a635b57ba..63f639e313ef52118c2b74d92fdf11ee014d20dc 100644 (file)
@@ -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;
index 35f764704968e069f97dbf692325c769019eb8a5..2f84974bd977d6dd14c16d2ac055cf2eef04a4f3 100644 (file)
@@ -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;
index 9dcbb31246d73b233ccfd32fc0ff02241c64909f..437c6cb566654937130944506501518621262c01 100644 (file)
@@ -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;
index 408a7ca3b1cec85f53a8f9fb723478acb065aa2c..02755358b3866ca58d5385f986b38e8ce9dc2834 100644 (file)
@@ -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;
index d6eeb13d84c0bf484230a59dba26c64d50df21aa..73fd168b48b71788db504ca8275bc1d749cbd491 100644 (file)
@@ -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;
 
index 2c830279e90d61f8d37904e8dcddeb4b8ce3c35b..99d46b2730d6baf6c6ed130d1698258a3618eaaf 100644 (file)
@@ -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;
index fc4c2ec0eaa92b93aeec3c4c285aa187eb6e9e98..c116c08146a46c0643100cde400df4ff97348491 100644 (file)
@@ -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;
index 73a14b2e55c0fae9d6d562ce67446939ff222b80..31dc2d0ce31db203cb3c0eff04e19584d162b0ac 100644 (file)
@@ -2,7 +2,6 @@ package com.vaadin.tests.components.abstractfield;
 
 import com.vaadin.tests.components.TestBase;
 import com.vaadin.tests.util.Log;
-import com.vaadin.v7.data.Property.ValueChangeListener;
 import com.vaadin.v7.ui.TextField;
 
 public class IntegerFieldWithoutDataSource extends TestBase {
index 8eef65171394ef05f750c1f3318dce0f4877d312..f000be2c8da817cfbfda63a896f8256d6446a870 100644 (file)
@@ -19,7 +19,6 @@ import com.vaadin.annotations.Push;
 import com.vaadin.server.VaadinRequest;
 import com.vaadin.tests.components.AbstractReindeerTestUI;
 import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.v7.data.util.IndexedContainer;
 import com.vaadin.v7.ui.Table;
 
index 76f547ed1db107870310b60237dd852f985f67c1..dd4f840b2e648a71ed0dd88b35e0374e9d7e8c52 100644 (file)
@@ -40,8 +40,6 @@ import com.vaadin.ui.Html5File;
 import com.vaadin.ui.Label;
 import com.vaadin.ui.VerticalLayout;
 import com.vaadin.ui.Window;
-import com.vaadin.v7.data.Property;
-import com.vaadin.v7.data.Property.ValueChangeEvent;
 import com.vaadin.v7.data.util.BeanItemContainer;
 import com.vaadin.v7.data.util.ContainerHierarchicalWrapper;
 import com.vaadin.v7.event.DataBoundTransferable;
index b5db41c7619fbcbac66da077ad126cadaab9c36c..75840854252d67ca052bc7eca1070022e2243fd9 100644 (file)
@@ -26,7 +26,6 @@ import com.vaadin.server.BootstrapResponse;
 import com.vaadin.server.VaadinRequest;
 import com.vaadin.tests.components.AbstractReindeerTestUI;
 import com.vaadin.ui.Button;
-import com.vaadin.ui.Button.ClickEvent;
 import com.vaadin.ui.UI;
 
 public class BootstrapModifyUI extends AbstractReindeerTestUI {
index db15fa33c8cf8367817e7e940c002f86c0bc1504..8000604e4c8d16286fab0bed3d0043b324a3b48f 100644 (file)
@@ -23,9 +23,6 @@ import com.vaadin.testbench.elements.ButtonElement;
 import com.vaadin.testbench.elements.GridElement;
 import com.vaadin.tests.tb3.SingleBrowserTest;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-
 /**
  * @author Vaadin Ltd
  */
index 81fd4904fd74fb5961ce42c28463f5016a5085f3..bb1681d5f91722d18671e0c4d503f0c0659604c3 100644 (file)
@@ -20,7 +20,6 @@ import static org.junit.Assert.assertTrue;
 
 import java.util.List;
 
-import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
 import org.openqa.selenium.WebElement;