]> source.dussan.org Git - vaadin-framework.git/commitdiff
Format project files according to conventions
authorArtur Signell <artur@vaadin.com>
Wed, 19 Mar 2014 14:30:23 +0000 (16:30 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 19 Mar 2014 14:32:32 +0000 (16:32 +0200)
Change-Id: I2522698237eb2a21c0896605bed8e73a82795c97

client/src/com/vaadin/client/ComponentLocator.java
client/src/com/vaadin/client/ui/VScrollTable.java
client/src/com/vaadin/client/ui/menubar/MenuBarConnector.java
server/src/com/vaadin/data/util/AbstractInMemoryContainer.java
server/src/com/vaadin/server/communication/UidlWriter.java
server/tests/src/com/vaadin/tests/data/converter/TestDateToSqlDateConverter.java
server/tests/src/com/vaadin/tests/server/validation/TestBeanValidation.java
uitest/src/com/vaadin/tests/components/calendar/TestHideTimeAndSeparator.java
uitest/src/com/vaadin/tests/push/TrackMessageSizeUITest.java
uitest/src/com/vaadin/tests/tb3/PrivateTB3Configuration.java

index ef7ccc3b65517d3aa95f318e19a6eb377b305c95..f30528c0c078b39be7b2ee14d6dae3f60707edf5 100644 (file)
@@ -22,11 +22,13 @@ package com.vaadin.client;
  * @since 5.4
  * @deprecated Moved to com.vaadin.client.componentlocator.ComponentLocator
  */
-public class ComponentLocator extends com.vaadin.client.componentlocator.ComponentLocator {
+public class ComponentLocator extends
+        com.vaadin.client.componentlocator.ComponentLocator {
     /**
      * Construct a ComponentLocator for the given ApplicationConnection.
      *
-     * @param client ApplicationConnection instance for the application.
+     * @param client
+     *            ApplicationConnection instance for the application.
      */
     public ComponentLocator(ApplicationConnection client) {
         super(client);
index 1b0dd646d12035ae645529436c2f922f3e35c0fe..54aca5381fcf3cc358ad6ce6f3101cc45be7b234 100644 (file)
@@ -7828,10 +7828,16 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
     private static final String SUBPART_FOOTER = "footer";
     private static final String SUBPART_ROW = "row";
     private static final String SUBPART_COL = "col";
-    /** Matches header[ix] - used for extracting the index of the targeted header cell */
+    /**
+     * Matches header[ix] - used for extracting the index of the targeted header
+     * cell
+     */
     private static final RegExp SUBPART_HEADER_REGEXP = RegExp
             .compile(SUBPART_HEADER + "\\[(\\d+)\\]");
-    /** Matches footer[ix] - used for extracting the index of the targeted footer cell */
+    /**
+     * Matches footer[ix] - used for extracting the index of the targeted footer
+     * cell
+     */
     private static final RegExp SUBPART_FOOTER_REGEXP = RegExp
             .compile(SUBPART_FOOTER + "\\[(\\d+)\\]");
     /** Matches row[ix] - used for extracting the index of the targeted row */
@@ -7839,7 +7845,8 @@ public class VScrollTable extends FlowPanel implements HasWidgets,
             + "\\[(\\d+)]");
     /** Matches col[ix] - used for extracting the index of the targeted column */
     private static final RegExp SUBPART_ROW_COL_REGEXP = RegExp
-            .compile(SUBPART_ROW + "\\[(\\d+)\\]/" + SUBPART_COL + "\\[(\\d+)\\]");
+            .compile(SUBPART_ROW + "\\[(\\d+)\\]/" + SUBPART_COL
+                    + "\\[(\\d+)\\]");
 
     @Override
     public Element getSubPartElement(String subPart) {
index 9ce418c35811e5391faf42a6e9cf58923b524cc9..0df413c1c31a7fd5d14d0c7a3bfea8236412a804 100644 (file)
@@ -81,7 +81,8 @@ public class MenuBarConnector extends AbstractComponentConnector implements
                         + Util.escapeAttribute(client
                                 .translateVaadinUri(moreItemUIDL
                                         .getStringAttribute("icon")))
-                        + "\" class=\"" + ImageIcon.CLASSNAME + "\" alt=\"\" />");
+                        + "\" class=\"" + ImageIcon.CLASSNAME
+                        + "\" alt=\"\" />");
             }
 
             String moreItemText = moreItemUIDL.getStringAttribute("text");
index 9a7922b9286b102d6bcc4fe4443b1e3bf9d4d25e..cae9f30fc98ea4fadbc991fe7fb980140cc54e72 100644 (file)
@@ -148,8 +148,8 @@ public abstract class AbstractInMemoryContainer<ITEMIDTYPE, PROPERTYIDCLASS, ITE
         }
     }
 
-    private static abstract class BaseItemAddOrRemoveEvent extends
-            EventObject implements Serializable {
+    private static abstract class BaseItemAddOrRemoveEvent extends EventObject
+            implements Serializable {
         protected Object itemId;
         protected int index;
         protected int count;
@@ -188,9 +188,8 @@ public abstract class AbstractInMemoryContainer<ITEMIDTYPE, PROPERTYIDCLASS, ITE
      * of added items.
      * </p>
      */
-    protected static class BaseItemAddEvent extends
-            BaseItemAddOrRemoveEvent implements
-            Container.Indexed.ItemAddEvent {
+    protected static class BaseItemAddEvent extends BaseItemAddOrRemoveEvent
+            implements Container.Indexed.ItemAddEvent {
 
         public BaseItemAddEvent(Container source, Object itemId, int index,
                 int count) {
@@ -212,12 +211,11 @@ public abstract class AbstractInMemoryContainer<ITEMIDTYPE, PROPERTYIDCLASS, ITE
      * number of removed items.
      * </p>
      */
-    protected static class BaseItemRemoveEvent extends
-            BaseItemAddOrRemoveEvent implements
-            Container.Indexed.ItemRemoveEvent {
+    protected static class BaseItemRemoveEvent extends BaseItemAddOrRemoveEvent
+            implements Container.Indexed.ItemRemoveEvent {
 
-        public BaseItemRemoveEvent(Container source, Object itemId,
-                int index, int count) {
+        public BaseItemRemoveEvent(Container source, Object itemId, int index,
+                int count) {
             super(source, itemId, index, count);
         }
 
@@ -1003,8 +1001,8 @@ public abstract class AbstractInMemoryContainer<ITEMIDTYPE, PROPERTYIDCLASS, ITE
      */
     protected void fireItemsAdded(int firstPosition, ITEMIDTYPE firstItemId,
             int numberOfItems) {
-        BaseItemAddEvent addEvent = new BaseItemAddEvent(this,
-                firstItemId, firstPosition, numberOfItems);
+        BaseItemAddEvent addEvent = new BaseItemAddEvent(this, firstItemId,
+                firstPosition, numberOfItems);
         fireItemSetChange(addEvent);
     }
 
index b46fbbf58af6a04f12336a337cffa9f402ce0c94..6c23da629efdc779638ca9d8317d60b07a100fe6 100644 (file)
@@ -99,8 +99,8 @@ public class UidlWriter implements Serializable {
 
         uiConnectorTracker.setWritingResponse(true);
         try {
-            writer.write("\"" + ApplicationConstants.SERVER_SYNC_ID
-                    + "\": " + uiConnectorTracker.getCurrentSyncId() + ", ");
+            writer.write("\"" + ApplicationConstants.SERVER_SYNC_ID + "\": "
+                    + uiConnectorTracker.getCurrentSyncId() + ", ");
 
             writer.write("\"changes\" : ");
 
index 685404ded61d7818005c014f1767aabea397799a..d591d10e1886236ec4a1f8d4c97bea97cfee42fa 100644 (file)
@@ -19,7 +19,7 @@ public class TestDateToSqlDateConverter extends TestCase {
     public void testValueConversion() {
         Date testDate = new Date(100, 0, 1);
         long time = testDate.getTime();
-        assertEquals(testDate, converter.convertToModel(new java.sql.Date(time),
-                java.sql.Date.class, Locale.ENGLISH));
+        assertEquals(testDate, converter.convertToModel(
+                new java.sql.Date(time), java.sql.Date.class, Locale.ENGLISH));
     }
 }
index 1d1a3c297ee2e81bd3d505b5cb91424fa70ac777..832ae14950632ae04a5dd32bbe42df566c102c0d 100644 (file)
@@ -84,6 +84,7 @@ public class TestBeanValidation {
 
         Assert.assertEquals(2, causes.length);
     }
+
     public void testBeanValidationNotAddedTwice() {
         // See ticket #11045
         BeanFieldGroup<BeanToValidate> fieldGroup = new BeanFieldGroup<BeanToValidate>(
index b8b55048f92208a841bdee9e17961e8c4a5e902c..60e8720d4414ce58f778b4a6c0e97e79796d0886 100644 (file)
@@ -21,7 +21,8 @@ public class TestHideTimeAndSeparator extends AbstractTestUI {
         private final String caption;
         private final boolean hideTime;
 
-        public GenericEvent(Date start, Date end, String caption, boolean hideTime) {
+        public GenericEvent(Date start, Date end, String caption,
+                boolean hideTime) {
             this.start = start;
             this.end = end;
             this.caption = caption;
@@ -60,10 +61,16 @@ public class TestHideTimeAndSeparator extends AbstractTestUI {
 
     }
 
-    CalendarEvent shortEventHidden = new GenericEvent(makeDate(2013, 1, 2, 8, 0), makeDate(2013, 1, 2, 8, 30), "Short event", true);
-    CalendarEvent longEventHidden = new GenericEvent(makeDate(2013, 1, 2, 10, 0), makeDate(2013, 1, 2, 12, 0), "Long event", true);
-    CalendarEvent shortEvent = new GenericEvent(makeDate(2013, 1, 3, 8, 0), makeDate(2013, 1, 3, 8, 30), "Short event", false);
-    CalendarEvent longEvent = new GenericEvent(makeDate(2013, 1, 3, 10, 0), makeDate(2013, 1, 3, 12, 0), "Long event", false);
+    CalendarEvent shortEventHidden = new GenericEvent(
+            makeDate(2013, 1, 2, 8, 0), makeDate(2013, 1, 2, 8, 30),
+            "Short event", true);
+    CalendarEvent longEventHidden = new GenericEvent(
+            makeDate(2013, 1, 2, 10, 0), makeDate(2013, 1, 2, 12, 0),
+            "Long event", true);
+    CalendarEvent shortEvent = new GenericEvent(makeDate(2013, 1, 3, 8, 0),
+            makeDate(2013, 1, 3, 8, 30), "Short event", false);
+    CalendarEvent longEvent = new GenericEvent(makeDate(2013, 1, 3, 10, 0),
+            makeDate(2013, 1, 3, 12, 0), "Long event", false);
 
     @Override
     protected void setup(VaadinRequest request) {
@@ -100,6 +107,7 @@ public class TestHideTimeAndSeparator extends AbstractTestUI {
         juc.set(year, month, day, hour, minute);
         return juc.getTime();
     }
+
     private Date makeDate(int year, int month, int day) {
         java.util.Calendar juc = java.util.Calendar.getInstance();
         juc.set(year, month, day);
index f904675b5e4ae1cf485b913fe6dd61f02d50c54d..2fc868d4ed3799ebf7f7d5b2dc51109a031e99a5 100644 (file)
@@ -24,7 +24,7 @@ public class TrackMessageSizeUITest extends MultiBrowserTest {
     @Test
     public void runTests() {
         openTestURL();
-        Assert.assertEquals("1. All tests run",
-                vaadinElementById("Log_row_0").getText());
+        Assert.assertEquals("1. All tests run", vaadinElementById("Log_row_0")
+                .getText());
     }
 }
\ No newline at end of file
index 400a2fe429a423fa5042b152565bb1fe2e734c32..a00ff7ab4de9fec84cab3e5bd9d4d2e9adb7e753 100644 (file)
@@ -125,7 +125,8 @@ public abstract class PrivateTB3Configuration extends ScreenshotTB3Test {
                         || nwInterface.isVirtual()) {
                     continue;
                 }
-                Enumeration<InetAddress> addresses = nwInterface.getInetAddresses();
+                Enumeration<InetAddress> addresses = nwInterface
+                        .getInetAddresses();
                 while (addresses.hasMoreElements()) {
                     InetAddress address = addresses.nextElement();
                     if (address.isLoopbackAddress()) {