]> source.dussan.org Git - vaadin-framework.git/commitdiff
Disable automatic removal of trailing whitespace and reformatted using Luna
authorArtur Signell <artur@vaadin.com>
Mon, 28 Jul 2014 11:52:26 +0000 (14:52 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 31 Jul 2014 12:24:50 +0000 (15:24 +0300)
Automatic removal of trailing whitespaces in Eclipse does not work even
in a nearly consistent way across platforms, versions or even on the same
maching within the same workspaces. Saving the same file multiple times
even alternates between adding and removing a whitespace on empty block
comment lines when saving.

Change-Id: I0efd307fd48869ea688eb79aa77c9ba38de5a4a6

38 files changed:
.settings/org.eclipse.jdt.ui.prefs
client/src/com/vaadin/client/ApplicationConnection.java
client/src/com/vaadin/client/communication/Heartbeat.java
client/src/com/vaadin/client/componentlocator/LocatorStrategy.java
client/src/com/vaadin/client/debug/internal/HierarchySection.java
client/src/com/vaadin/client/debug/internal/SelectConnectorListener.java
client/src/com/vaadin/client/ui/VOverlay.java
client/src/com/vaadin/client/ui/dd/DDUtil.java
client/src/com/vaadin/client/ui/dd/DragImageModifier.java
server/src/com/vaadin/server/Page.java
server/src/com/vaadin/server/VaadinSession.java
server/src/com/vaadin/server/communication/ClientRpcWriter.java
server/src/com/vaadin/ui/NotificationConfiguration.java
server/src/com/vaadin/ui/TabSheet.java
server/src/com/vaadin/util/CurrentInstance.java
server/tests/src/com/vaadin/server/VaadinPortletRequestTests.java
uitest/src/com/vaadin/tests/components/abstractcomponent/PrimaryStyleTest.java
uitest/src/com/vaadin/tests/components/button/ButtonToggleIcons.java
uitest/src/com/vaadin/tests/components/checkbox/CheckBoxRpcCountTest.java
uitest/src/com/vaadin/tests/components/combobox/ComboBoxInputPromptTest.java
uitest/src/com/vaadin/tests/components/combobox/ComboBoxScrollingWithArrowsTest.java
uitest/src/com/vaadin/tests/components/datefield/DateFieldReadOnlyTest.java
uitest/src/com/vaadin/tests/components/gridlayout/MoveComponentsFromGridLayoutToInnerLayoutTest.java
uitest/src/com/vaadin/tests/components/menubar/MenuTooltipTest.java
uitest/src/com/vaadin/tests/components/notification/NotificationsWaiAria.java
uitest/src/com/vaadin/tests/components/window/WindowMoveListenerTest.java
uitest/src/com/vaadin/tests/layouts/gridlayout/GridLayoutWidthChangeTest.java
uitest/src/com/vaadin/tests/layouts/layouttester/GridLayout/GridAddReplaceMove.java
uitest/src/com/vaadin/tests/layouts/layouttester/HLayout/HAddReplaceMove.java
uitest/src/com/vaadin/tests/layouts/layouttester/HLayout/HCaption.java
uitest/src/com/vaadin/tests/layouts/layouttester/VLayout/VLayoutExpandTest.java
uitest/src/com/vaadin/tests/layouts/layouttester/VLayout/VLayoutRegErrorTest.java
uitest/src/com/vaadin/tests/layouts/layouttester/VLayout/VLayoutSizingTest.java
uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java
uitest/src/com/vaadin/tests/push/ReconnectLongPollingTest.java
uitest/src/com/vaadin/tests/push/ReconnectStreamingTest.java
uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
uitest/src/com/vaadin/tests/tooltip/AdjacentElementsWithTooltipsTest.java

index 095a6ca1edca19f72222d7f1984083e298169c46..371787635648818a8fe6486d457e68525d7841bd 100644 (file)
@@ -17,10 +17,12 @@ sp_cleanup.always_use_blocks=true
 sp_cleanup.always_use_parentheses_in_expressions=false
 sp_cleanup.always_use_this_for_non_static_field_access=false
 sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_functional_interfaces=false
 sp_cleanup.convert_to_enhanced_for_loop=false
 sp_cleanup.correct_indentation=false
 sp_cleanup.format_source_code=true
 sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.insert_inferred_type_arguments=false
 sp_cleanup.make_local_variable_final=false
 sp_cleanup.make_parameters_final=false
 sp_cleanup.make_private_fields_final=true
@@ -36,7 +38,8 @@ sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=
 sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
 sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
 sp_cleanup.remove_private_constructors=true
-sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_redundant_type_arguments=false
+sp_cleanup.remove_trailing_whitespaces=false
 sp_cleanup.remove_trailing_whitespaces_all=true
 sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
 sp_cleanup.remove_unnecessary_casts=true
@@ -49,10 +52,13 @@ sp_cleanup.remove_unused_private_methods=true
 sp_cleanup.remove_unused_private_types=true
 sp_cleanup.sort_members=false
 sp_cleanup.sort_members_all=false
+sp_cleanup.use_anonymous_class_creation=false
 sp_cleanup.use_blocks=true
 sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_lambda=false
 sp_cleanup.use_parentheses_in_expressions=false
 sp_cleanup.use_this_for_non_static_field_access=true
 sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
 sp_cleanup.use_this_for_non_static_method_access=true
 sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+sp_cleanup.use_type_arguments=false
index 5fcb2070ec6912a92ef27581a7b853427896ef9f..b569c0b17c736056518f1fc86407b4674cd4eb40 100644 (file)
@@ -809,7 +809,8 @@ public class ApplicationConnection implements HasHandlers {
         startRequest();
 
         JSONObject payload = new JSONObject();
-        if (!getCsrfToken().equals(ApplicationConstants.CSRF_TOKEN_DEFAULT_VALUE)) {
+        if (!getCsrfToken().equals(
+                ApplicationConstants.CSRF_TOKEN_DEFAULT_VALUE)) {
             payload.put(ApplicationConstants.CSRF_TOKEN, new JSONString(
                     getCsrfToken()));
         }
index 1ff0825f0e2c6c6e0849c7f5542c0f4734d891eb..b9493d45202e91e9570002b3da5009dcda60f352 100644 (file)
@@ -124,7 +124,9 @@ public class Heartbeat {
 
             @Override
             public void onError(Request request, Throwable exception) {
-                getLogger().severe("Exception sending heartbeat: " + exception.getMessage());
+                getLogger().severe(
+                        "Exception sending heartbeat: "
+                                + exception.getMessage());
                 // Notify network observers about response status
                 connection.fireEvent(new ConnectionStatusEvent(0));
                 // Don't break the loop
index 6eb732bf46fe06413e3f4f27c3cba32dadbf96bc..15a156a815e5372ffca1621cf9eefefbbb4ba5fb 100644 (file)
@@ -87,8 +87,7 @@ public interface LocatorStrategy {
      * @return The DOM element identified by {@code path} or null if the element
      *         could not be located.
      */
-    Element getElementByPathStartingAt(String path,
-            Element root);
+    Element getElementByPathStartingAt(String path, Element root);
 
     /**
      * Locates all elements that match a String locator (path) which identifies
@@ -119,6 +118,5 @@ public interface LocatorStrategy {
      *         found.
      */
 
-    List<Element> getElementsByPathStartingAt(
-            String path, Element root);
+    List<Element> getElementsByPathStartingAt(String path, Element root);
 }
index 1eacf286e8716d4403f2f6d02468793bf703afef..404ac430df9e39035e2faf4dd442d1d14a0086ee 100644 (file)
@@ -108,16 +108,14 @@ public class HierarchySection implements Section {
 
         hierarchyPanel.addListener(new SelectConnectorListener() {
             @Override
-            public void select(ServerConnector connector,
-                    Element element) {
+            public void select(ServerConnector connector, Element element) {
                 printState(connector, true);
             }
         });
 
         analyzeLayoutsPanel.addListener(new SelectConnectorListener() {
             @Override
-            public void select(ServerConnector connector,
-                    Element element) {
+            public void select(ServerConnector connector, Element element) {
                 printState(connector, true);
             }
         });
index c3652c78e83b4cc5626fbaf94c098247a8cf6ad8..46c8070b306d046ece1fc72dad575958bc918462 100644 (file)
@@ -33,6 +33,5 @@ public interface SelectConnectorListener {
      * @param element
      *            selected element of the connector or null if unknown
      */
-    public void select(ServerConnector connector,
-            Element element);
+    public void select(ServerConnector connector, Element element);
 }
index d2c3ee2dae1fa21e360d02b8cd7fe32fc9f0774d..c62e2c9824d9f3080324153d740100c567580890 100644 (file)
@@ -444,7 +444,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
      * A "thread local" of sorts, set temporarily so that VOverlayImpl knows
      * which VOverlay is using it, so that it can be attached to the correct
      * overlay container.
-     *
+     * 
      * TODO this is a strange pattern that we should get rid of when possible.
      */
     protected static VOverlay current;
@@ -971,7 +971,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
 
     /*
      * (non-Javadoc)
-     *
+     * 
      * @see com.google.gwt.user.client.ui.PopupPanel#hide()
      */
     @Override
@@ -981,7 +981,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
 
     /*
      * (non-Javadoc)
-     *
+     * 
      * @see com.google.gwt.user.client.ui.PopupPanel#hide(boolean)
      */
     @Override
index dfdafe13527baf12f51b33f6a6d78a9dd434fbb1..77de1f9b1a5c7e2b9383af73bcbb2d4c1d2b47f8 100644 (file)
@@ -58,8 +58,7 @@ public class DDUtil {
     }
 
     public static HorizontalDropLocation getHorizontalDropLocation(
-            Element element, NativeEvent event,
-            double leftRightRatio) {
+            Element element, NativeEvent event, double leftRightRatio) {
         int clientX = Util.getTouchOrMouseClientX(event);
 
         // Event coordinates are relative to the viewport, element absolute
index f08c082a709eaeef7394c4f387f94adef484cb67..45ab5d9bb39c05ea25fb0beec8664274d071a141 100644 (file)
@@ -20,7 +20,8 @@ import com.google.gwt.dom.client.Element;
 /**
  * Interface implemented by widgets if the drag image used for drag'n'drop
  * requires additional initialization/configuration. The method
- * {@link #modifyDragImage(Element)} is called for each element in the automatically generated drag image.
+ * {@link #modifyDragImage(Element)} is called for each element in the
+ * automatically generated drag image.
  * 
  * @since 7.2
  * @author Vaadin Ltd
index d58ba548e3a02388b72e689e636519455a3cb4e6..3acea97c0f3eb4cf7b95c12a4af2647facdc7957 100644 (file)
@@ -636,7 +636,8 @@ public class Page implements Serializable {
     }
 
     public void init(VaadinRequest request) {
-        // NOTE: UI.refresh makes assumptions about the semantics of this method.
+        // NOTE: UI.refresh makes assumptions about the semantics of this
+        // method.
         // It should be kept in sync if this method is changed.
 
         // Extract special parameter sent by vaadinBootstrap.js
index 2ab8c52dad3ce6c88e6f306bfdce4d159de6a9b1..f93cb8e07039be567cf26222c66c12dd537109bc 100644 (file)
@@ -114,7 +114,7 @@ public class VaadinSession implements HttpSessionBindingListener, Serializable {
              * deadlocks unless implemented very carefully. get(long, TimeUnit)
              * does not have the same detection since a sensible timeout should
              * avoid completely locking up the application.
-             *
+             * 
              * Even though no deadlock could occur after the runnable has been
              * run, the check is always done as the deterministic behavior makes
              * it easier to detect potential problems.
index 181bfbb882714e6bba7748f0f399ca77e7720a4e..1090fdbab9fd6cfb255e834dc46c875e42d97d53 100644 (file)
@@ -81,9 +81,9 @@ public class ClientRpcWriter implements Serializable {
                     // + parameterType.getName());
                     // }
                     // }
-                    EncodeResult encodeResult = JsonCodec.encode(invocation.getParameters()[i],
-                            referenceParameter, parameterType,
-                            ui.getConnectorTracker());
+                    EncodeResult encodeResult = JsonCodec.encode(
+                            invocation.getParameters()[i], referenceParameter,
+                            parameterType, ui.getConnectorTracker());
                     paramJson.put(encodeResult.getEncodedValue());
                 }
                 invocationJson.put(paramJson);
index faab329f88ffd9c462fe3964927810fd34364ecd..925c888a5132d2eb10e64b098077309a7ec121ea 100644 (file)
@@ -173,7 +173,8 @@ class NotificationConfigurationImpl implements NotificationConfiguration {
         NotificationTypeConfiguration styleSetup = getTypeConf(type);
         if (styleSetup == null) {
             styleSetup = new NotificationTypeConfiguration();
-            ui.getState().notificationConfigurations.put(type.getStyle(), styleSetup);
+            ui.getState().notificationConfigurations.put(type.getStyle(),
+                    styleSetup);
         }
 
         return styleSetup;
index 2fdb3b40a7b306f658af8c17bedaf652e8d41b7a..8b13ecf1a4a35121f812f4047da650058b73b32f 100644 (file)
@@ -317,7 +317,8 @@ public class TabSheet extends AbstractComponentContainer implements Focusable,
      *            the position at where the the tab should be added.
      * @return the created {@link Tab}
      */
-    public Tab addTab(Component tabComponent, String caption, Resource icon, int position) {
+    public Tab addTab(Component tabComponent, String caption, Resource icon,
+            int position) {
         if (tabComponent == null) {
             return null;
         } else if (tabs.containsKey(tabComponent)) {
@@ -1070,8 +1071,7 @@ public class TabSheet extends AbstractComponentContainer implements Focusable,
 
         @Override
         public Resource getIcon() {
-            return getResource(ComponentConstants.ICON_RESOURCE
-                    + tabState.key);
+            return getResource(ComponentConstants.ICON_RESOURCE + tabState.key);
         }
 
         @Override
@@ -1211,8 +1211,7 @@ public class TabSheet extends AbstractComponentContainer implements Focusable,
 
         @Override
         public void setIcon(Resource icon, String iconAltText) {
-            setResource(ComponentConstants.ICON_RESOURCE + tabState.key,
-                    icon);
+            setResource(ComponentConstants.ICON_RESOURCE + tabState.key, icon);
             tabState.iconAltText = iconAltText;
         }
     }
index 6f2c0a2eca56a97ee80ee7b49762ee6430edcd8f..d11fa175ac606d78b23cf05dfef3f11da9ffa6ed 100644 (file)
@@ -112,7 +112,7 @@ public class CurrentInstance implements Serializable {
                  * ThreadLocal should only outlive the referenced object on
                  * threads that are not doing anything related to Vaadin, which
                  * should thus never invoke CurrentInstance.get().
-                 *
+                 * 
                  * At this point, there might also be other values that have
                  * been collected, so we'll scan the entire map and remove stale
                  * CurrentInstance objects. Using a ReferenceQueue could make
@@ -250,7 +250,7 @@ public class CurrentInstance implements Serializable {
                  * CurrentInstance. Without this a reference to an already
                  * collected instance may be left in the CurrentInstance when it
                  * really should be restored to null.
-                 *
+                 * 
                  * One example case that this fixes:
                  * VaadinService.runPendingAccessTasks() clears all current
                  * instances and then sets everything but the UI. This makes
index 6e40c57718b12b1e2a5d024844b687025087415f..bf2b809529adef052fdabbf920dc709775ea55f9 100644 (file)
@@ -42,7 +42,8 @@ public class VaadinPortletRequestTests {
 
     @Test
     public void defaultValueForPortletPreferenceIsNull() {
-        when(preferences.getValue(anyString(), isNull(String.class))).thenReturn(null);
+        when(preferences.getValue(anyString(), isNull(String.class)))
+                .thenReturn(null);
 
         String value = sut.getPortletPreference("foo");
 
index ce99c4a3d508d8f4a179f31cd967d185f97b60ab..8500fbe18d7a40a927bfec12282f8601cf5a1081 100644 (file)
@@ -43,7 +43,8 @@ public class PrimaryStyleTest extends MultiBrowserTest {
         $(ButtonElement.class).id("update-button").click();
 
         // Verify that the class names where updated as expected.
-        List<WebElement> updatedElements = driver.findElements(By.className("updated-correctly"));
+        List<WebElement> updatedElements = driver.findElements(By
+                .className("updated-correctly"));
         assertThat(updatedElements, hasSize(initialElements.size()));
 
     }
index 25dd469903ba7e05cd9ce559260468c30ad7a040..cee71fdf4ef1c4a396a9ed72a297e5d275553813 100644 (file)
@@ -35,4 +35,4 @@ public class ButtonToggleIcons extends UI {
         layout.addComponent(new Button("Toggle icon", iconToggleListener));\r
         layout.addComponent(new NativeButton("Toggle icon", iconToggleListener));\r
     }\r
-}
+}\r
index 9d6640eb6dab008ca70e97bbdffb7b9634b2acee..69a919497bc012fc1c7bb8951385fb73e8feb870 100644 (file)
@@ -40,7 +40,7 @@ public class CheckBoxRpcCountTest extends MultiBrowserTest {
 
         // Click on the actual checkbox.
         inputElem.click();
-        //Have to use waitUntil to make this test more stable.
+        // Have to use waitUntil to make this test more stable.
         waitUntilLabelIsUpdated(countElem, "1 RPC call(s) made.");
 
         // Click on the checkbox label.
@@ -52,7 +52,8 @@ public class CheckBoxRpcCountTest extends MultiBrowserTest {
         waitUntilLabelIsUpdated(countElem, "3 RPC call(s) made.");
     }
 
-    private void waitUntilLabelIsUpdated(final WebElement countElem, final String expectedText) {
+    private void waitUntilLabelIsUpdated(final WebElement countElem,
+            final String expectedText) {
         waitUntil(new ExpectedCondition<Boolean>() {
             @Override
             public Boolean apply(WebDriver input) {
index 96151022ffa7f8cdb4fe38fddaae0f1efaa03085..cbd83c57344095f77c7daec7f719b94a6208de88 100644 (file)
@@ -40,13 +40,16 @@ public class ComboBoxInputPromptTest extends MultiBrowserTest {
         ComboBoxElement disabledComboBox = getComboBoxWithCaption("Disabled");
         ComboBoxElement readOnlyComboBox = getComboBoxWithCaption("Read-only");
 
-        assertThat(getInputPromptValue(normalComboBox), is("Normal input prompt"));
+        assertThat(getInputPromptValue(normalComboBox),
+                is("Normal input prompt"));
         assertThat(getInputPromptValue(disabledComboBox), isEmptyString());
         assertThat(getInputPromptValue(readOnlyComboBox), isEmptyString());
 
         toggleDisabledAndReadonly();
-        assertThat(getInputPromptValue(disabledComboBox), is("Disabled input prompt"));
-        assertThat(getInputPromptValue(readOnlyComboBox), is("Read-only input prompt"));
+        assertThat(getInputPromptValue(disabledComboBox),
+                is("Disabled input prompt"));
+        assertThat(getInputPromptValue(readOnlyComboBox),
+                is("Read-only input prompt"));
 
         toggleDisabledAndReadonly();
         assertThat(getInputPromptValue(disabledComboBox), isEmptyString());
index fa6f5a3a93a3247b733f8aae017846ff85b9fe31..bc1fe39fe526a1bc91e7d9154ef687d382200f58 100644 (file)
@@ -52,8 +52,7 @@ public class ComboBoxScrollingWithArrowsTest extends MultiBrowserTest {
         // provide any way to access the popup and send keys to it.
         // Ticket #13756
 
-        return driver.findElement(By
-                .className("v-filterselect-input"));
+        return driver.findElement(By.className("v-filterselect-input"));
     }
 
     private void openPopup() {
@@ -70,7 +69,7 @@ public class ComboBoxScrollingWithArrowsTest extends MultiBrowserTest {
             dropDownComboBox.sendKeys(Keys.DOWN);
         }
 
-        assertThat(getSelectedItemText(), is("item " + PAGESIZE)); //item 10
+        assertThat(getSelectedItemText(), is("item " + PAGESIZE)); // item 10
     }
 
     private String getSelectedItemText() {
@@ -92,7 +91,8 @@ public class ComboBoxScrollingWithArrowsTest extends MultiBrowserTest {
         waitUntilNextPageIsVisible();
         dropDownComboBox.sendKeys(Keys.UP);
 
-        assertThat(getSelectedItemText(), is("item " + (PAGESIZE - 1))); //item 9
+        assertThat(getSelectedItemText(), is("item " + (PAGESIZE - 1))); // item
+                                                                         // 9
     }
 
     private void waitUntilNextPageIsVisible() {
index 289a5988ee9d1fcd65e21818f7fba210d9d96da4..cfab13e2054dd2ccd7c6cec10a378c60930e8d3f 100644 (file)
@@ -1,6 +1,5 @@
 package com.vaadin.tests.components.datefield;
 
-
 import com.vaadin.testbench.By;
 import com.vaadin.testbench.elements.ButtonElement;
 import com.vaadin.testbench.elements.DateFieldElement;
@@ -14,7 +13,8 @@ import java.io.IOException;
 public class DateFieldReadOnlyTest extends MultiBrowserTest {
 
     @Test
-    public void readOnlyDateFieldPopupShouldNotOpen() throws IOException, InterruptedException {
+    public void readOnlyDateFieldPopupShouldNotOpen() throws IOException,
+            InterruptedException {
         openTestURL();
 
         compareScreen("initial");
@@ -29,12 +29,15 @@ public class DateFieldReadOnlyTest extends MultiBrowserTest {
     }
 
     private void closePopup() {
-        findElement(By.className("v-datefield-calendarpanel")).sendKeys(Keys.RETURN);
+        findElement(By.className("v-datefield-calendarpanel")).sendKeys(
+                Keys.RETURN);
     }
 
     private void openPopup() {
-        //waiting for openPopup() in TB4 beta1: http://dev.vaadin.com/ticket/13766
-        $(DateFieldElement.class).first().findElement(By.tagName("button")).click();
+        // waiting for openPopup() in TB4 beta1:
+        // http://dev.vaadin.com/ticket/13766
+        $(DateFieldElement.class).first().findElement(By.tagName("button"))
+                .click();
     }
 
     private void toggleReadOnly() {
index eb4888ea1a0821acbf57cd5fe61a95357ac54996..95152e1416375e5496304b827b6a057353701054 100644 (file)
@@ -9,7 +9,8 @@ import java.io.IOException;
 
 import static org.junit.Assert.*;
 
-public class MoveComponentsFromGridLayoutToInnerLayoutTest extends MultiBrowserTest {
+public class MoveComponentsFromGridLayoutToInnerLayoutTest extends
+        MultiBrowserTest {
 
     @Test
     public void buttonIsMovedInsideInnerLayout() throws IOException {
index bb8f87daaa46143becf3c7202bc4f14051162f0d..24025b9f3978f8248cf441eba9927501591a8ea0 100644 (file)
@@ -47,7 +47,8 @@ public class MenuTooltipTest extends MultiBrowserTest {
     public void testToolTipDelay() throws InterruptedException {
         openTestURL();
 
-        Coordinates elementCoordinates = getCoordinates($(MenuBarElement.class).first());
+        Coordinates elementCoordinates = getCoordinates($(MenuBarElement.class)
+                .first());
 
         Mouse mouse = ((HasInputDevices) getDriver()).getMouse();
 
index ecf704835fda64e728938126c96133f0446132e5..7a12168af497cde71b8f8bf704e3d584e404f61c 100644 (file)
@@ -102,8 +102,8 @@ public class NotificationsWaiAria extends TestBase {
                     .getNotificationConfiguration();
             notificationConf.setAssistivePrefix(typeValue, prefix.getValue());
             notificationConf.setAssistivePostfix(typeValue, postfix.getValue());
-            notificationConf
-                    .setAssistiveRole(typeValue, (NotificationRole) role.getValue());
+            notificationConf.setAssistiveRole(typeValue,
+                    (NotificationRole) role.getValue());
 
             n.show(Page.getCurrent());
         }
index e067ada818fc386a47abea717abc0f940eb898f9..8d74e3a259b981eb7be9c9b2e0745d80f72b1175 100644 (file)
@@ -43,12 +43,13 @@ public class WindowMoveListenerTest extends MultiBrowserTest {
         waitUntilWindowHasReseted(window, winPos);
     }
 
-    private void waitUntilWindowHasReseted(final WebElement window, final Point winPos) {
+    private void waitUntilWindowHasReseted(final WebElement window,
+            final Point winPos) {
         waitUntil(new ExpectedCondition<Boolean>() {
             @Override
             public Boolean apply(WebDriver input) {
-                return winPos.x == window.getLocation().x &&
-                       winPos.y == window.getLocation().y;
+                return winPos.x == window.getLocation().x
+                        && winPos.y == window.getLocation().y;
             }
         }, 5);
     }
index 52ea5f4f8e7e1e6b812f6e4c5b3b450efe4fa379..ba3d0f06f15b6391af17849b2eb87d08b4e99f88 100644 (file)
@@ -17,7 +17,8 @@ public class GridLayoutWidthChangeTest extends MultiBrowserTest {
 
         compareScreen("initial");
 
-        $(ButtonElement.class).caption("Reduce GridLayout parent width").first().click();
+        $(ButtonElement.class).caption("Reduce GridLayout parent width")
+                .first().click();
 
         compareScreen("buttonMoved");
     }
index 2771af01c611df0075121f10aa53891de6226ed9..84254b49350bbaab2040a6a317434a0f8cdfff4b 100644 (file)
@@ -36,7 +36,7 @@ public class GridAddReplaceMove extends GridBaseLayoutTestUI {
 
     /*
      * (non-Javadoc)
-     *
+     * 
      * @see com.vaadin.tests.components.AbstractTestUI#setup(com.vaadin.server.
      * VaadinRequest)
      */
index 1c0e992a86361a85f89a450a6dcb7e658ac0cbd6..c4787045fceeedac757853f198c6d294b2f61906 100644 (file)
@@ -19,7 +19,6 @@ import com.vaadin.annotations.Theme;
 import com.vaadin.tests.layouts.layouttester.BaseAddReplaceMove;
 import com.vaadin.ui.HorizontalLayout;
 
-
 public class HAddReplaceMove extends BaseAddReplaceMove {
 
     /**
index bb974a8c683408d6608e337e616bf70ef6953c4e..3088a00c39daf834ec25dbc8e6424f7a12eabe90 100644 (file)
@@ -19,7 +19,6 @@ import com.vaadin.annotations.Theme;
 import com.vaadin.tests.layouts.layouttester.BaseCaption;
 import com.vaadin.ui.HorizontalLayout;
 
-
 public class HCaption extends BaseCaption {
 
     /**
index 57bb134be7de6ea01e4770f0585817b9d4c8a656..152e3f0b86d7394a33cf60c50689047c688c03bd 100644 (file)
@@ -17,7 +17,6 @@ package com.vaadin.tests.layouts.layouttester.VLayout;
 
 import com.vaadin.tests.layouts.layouttester.BaseLayoutExpandTest;
 
-
 /**
  *
  * @since
index e3e5914e3ab6d6a2efd44854cc07bdf4560000fe..7f803781fb67662d7c7057befedf405fe223455f 100644 (file)
@@ -17,7 +17,6 @@ package com.vaadin.tests.layouts.layouttester.VLayout;
 
 import com.vaadin.tests.layouts.layouttester.BaseLayoutRegErrorTest;
 
-
 /**
  *
  * @since
index 372eb9cba421a97fb8768deaaf7b63e051f3a0ad..519f8113f8ef1eb6b62479b15380575b04b4d99f 100644 (file)
@@ -17,7 +17,6 @@ package com.vaadin.tests.layouts.layouttester.VLayout;
 
 import com.vaadin.tests.layouts.layouttester.BaseLayoutSizingTest;
 
-
 /**
  *
  * @since
index f2207ccba704077d5d234646a0e27acf5a8fb006..a04d569e0553c5682601fdb445d1d05a29397538 100644 (file)
@@ -37,7 +37,8 @@ public class PushConfigurationLongPollingTest extends PushConfigurationTest {
 
         clearDebugMessages();
         new Select(getPushModeSelect()).selectByVisibleText("AUTOMATIC");
-        waitForDebugMessage("Push connection established using long-polling", 10);
+        waitForDebugMessage("Push connection established using long-polling",
+                10);
         waitForServerCounterToUpdate();
     }
 
index 8a4593d70d70f8d1c0160ac892df053ee466df94..28ef30a04ab9518b5aad150a34c81547ef8bd9cd 100644 (file)
@@ -15,7 +15,6 @@
  */
 package com.vaadin.tests.push;
 
-
 public class ReconnectLongPollingTest extends ReconnectTest {
 
     @Override
index fe63764e78cca289fcb85943c26985d2e465eb7a..0a0275c4d04907d79c579db215bdb13bf8caa457 100755 (executable)
@@ -15,7 +15,6 @@
  */
 package com.vaadin.tests.push;
 
-
 public class ReconnectStreamingTest extends ReconnectTest {
 
     @Override
index 8dd10216d2a270e424a749d35566ca5db40c07aa..c4573fb9b87ba1b71534328a2a6654e3107b2ccf 100644 (file)
@@ -166,7 +166,8 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
     }
 
     protected WebElement getTooltipElement() {
-        return getDriver().findElement(com.vaadin.testbench.By.className("v-tooltip-text"));
+        return getDriver().findElement(
+                com.vaadin.testbench.By.className("v-tooltip-text"));
     }
 
     protected Coordinates getCoordinates(TestBenchElement element) {
index b9fc788008b70b5d38093920dc5835da78ed5fc2..af7a3036294f4fbe9e92ffe48ecef50b4c43d70d 100644 (file)
@@ -69,7 +69,6 @@ public class AdjacentElementsWithTooltipsTest extends MultiBrowserTest {
     }
 
     private ButtonElement getButton(String caption) {
-        return $(ButtonElement.class)
-                    .caption(caption).first();
+        return $(ButtonElement.class).caption(caption).first();
     }
 }