]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove auto-generated comment (#10111)
authorAhmed Ashour <asashour@yahoo.com>
Fri, 29 Sep 2017 06:55:58 +0000 (08:55 +0200)
committerHenri Sara <henri.sara@gmail.com>
Fri, 29 Sep 2017 06:55:58 +0000 (09:55 +0300)
26 files changed:
uitest/src/main/java/com/vaadin/tests/TestForStyledUpload.java
uitest/src/main/java/com/vaadin/tests/TestForUpload.java
uitest/src/main/java/com/vaadin/tests/TestSizeableIncomponents.java
uitest/src/main/java/com/vaadin/tests/components/TouchScrollables.java
uitest/src/main/java/com/vaadin/tests/components/browserframe/BrowserFrameIsVisible.java
uitest/src/main/java/com/vaadin/tests/components/customlayout/CustomLayoutPrimaryStyleName.java
uitest/src/main/java/com/vaadin/tests/components/customlayout/CustomLayoutUsingTemplate.java
uitest/src/main/java/com/vaadin/tests/components/customlayout/CustomLayoutWithMissingSlot.java
uitest/src/main/java/com/vaadin/tests/components/table/TableInTabsheet.java
uitest/src/main/java/com/vaadin/tests/components/uitest/components/LayoutsCssTest.java
uitest/src/main/java/com/vaadin/tests/dd/DDTest1.java
uitest/src/main/java/com/vaadin/tests/dd/DDTest4.java
uitest/src/main/java/com/vaadin/tests/declarative/PotusCrud.java
uitest/src/main/java/com/vaadin/tests/layouts/DeepComponentTrees.java
uitest/src/main/java/com/vaadin/tests/layouts/MovingComponentsWhileOldParentInvisible.java
uitest/src/main/java/com/vaadin/tests/layouts/TestLayoutPerformance.java
uitest/src/main/java/com/vaadin/tests/layouts/layouttester/BaseAlignment.java
uitest/src/main/java/com/vaadin/tests/layouts/layouttester/BaseLayoutTestUI.java
uitest/src/main/java/com/vaadin/tests/push/PushWebsocketDeadlockUI.java
uitest/src/main/java/com/vaadin/tests/push/TablePushStreaming.java
uitest/src/main/java/com/vaadin/tests/resources/DownloadLargeFileResource.java
uitest/src/main/java/com/vaadin/tests/resources/ResourceDownload.java
uitest/src/main/java/com/vaadin/v7/tests/components/grid/basicfeatures/GridBasicFeatures.java
uitest/src/test/java/com/vaadin/tests/components/table/MemoryLeakTableTest.java
uitest/src/test/java/com/vaadin/tests/tb3/ChangedTB3TestLocator.java
uitest/src/test/java/com/vaadin/tests/tb3/TB3TestLocator.java

index 45f0bb47fe8491f104aaf94adb1a534d8905ab4a..9da1e2250e4eb6f0900f027e4f4c45de8466110d 100644 (file)
@@ -220,10 +220,8 @@ public class TestForStyledUpload extends LegacyApplication
             try {
                 file = File.createTempFile(tempFileName, null);
             } catch (final IOException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
-
         }
 
         public void cancel() {
@@ -239,7 +237,6 @@ public class TestForStyledUpload extends LegacyApplication
                 stream = new FileInputStream(file);
                 return stream;
             } catch (final FileNotFoundException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
             return null;
@@ -255,7 +252,6 @@ public class TestForStyledUpload extends LegacyApplication
             try {
                 return new FileOutputStream(file);
             } catch (final FileNotFoundException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
             return null;
@@ -304,7 +300,6 @@ public class TestForStyledUpload extends LegacyApplication
         mem.append(" | Non-Heap (M):");
         mem.append(mmBean.getNonHeapMemoryUsage().getUsed() / 1048576);
         memoryStatus.setValue(mem.toString());
-
     }
 
     @Override
@@ -319,7 +314,6 @@ public class TestForStyledUpload extends LegacyApplication
         setTheme("runo");
         w.addComponent(main);
         setMainWindow(w);
-
     }
 
 }
index 5d858aadd66159d8e84e6fd5b3838e67e3198e23..22ece0d45ad1afa299b6f5a6bdde62dcd61161be 100644 (file)
@@ -369,10 +369,8 @@ public class TestForUpload extends CustomComponent
             try {
                 file = File.createTempFile(tempFileName, null);
             } catch (final IOException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
-
         }
 
         @Override
@@ -383,7 +381,6 @@ public class TestForUpload extends CustomComponent
             try {
                 return new FileInputStream(file);
             } catch (final FileNotFoundException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
             return null;
@@ -409,7 +406,6 @@ public class TestForUpload extends CustomComponent
 
                 };
             } catch (final FileNotFoundException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
             return null;
@@ -461,7 +457,6 @@ public class TestForUpload extends CustomComponent
             try {
                 Thread.sleep(1000);
             } catch (InterruptedException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
         }
@@ -472,6 +467,5 @@ public class TestForUpload extends CustomComponent
             throwExecption.setValue(false);
             throw new RuntimeException("Test execption in receiver.");
         }
-
     }
 }
index 9a45be4712f97c1365d017b333cc3c0431fca8d9..45de6b34a4814b8820e5d3448b0aa4bf0d430e5b 100644 (file)
@@ -120,11 +120,8 @@ public class TestSizeableIncomponents extends LegacyApplication {
                         if (c != null) {
                             testPanelLayout.addComponent(c);
                         }
-                    } catch (InstantiationException e) {
-                        // TODO Auto-generated catch block
-                        e.printStackTrace();
-                    } catch (IllegalAccessException e) {
-                        // TODO Auto-generated catch block
+                    } catch (InstantiationException
+                            | IllegalAccessException e) {
                         e.printStackTrace();
                     }
                 }
@@ -216,14 +213,8 @@ public class TestSizeableIncomponents extends LegacyApplication {
                         cont.addItem(t);
                     }
 
-                } catch (ClassNotFoundException e) {
-                    // TODO Auto-generated catch block
-                    // e.printStackTrace();
-                } catch (InstantiationException e) {
-                    // TODO Auto-generated catch block
-                    // e.printStackTrace();
-                } catch (IllegalAccessException e) {
-                    // TODO Auto-generated catch block
+                } catch (ClassNotFoundException | InstantiationException
+                        | IllegalAccessException e) {
                     // e.printStackTrace();
                 }
             }
index 44ba18cb8bb27f33bf9bb14cac2a7128f02db884..4ddc242377babc3bf8dd8e82771a41f3f7f3977e 100644 (file)
@@ -189,8 +189,8 @@ public class TouchScrollables extends TestBase {
 
         table.addActionHandler(new Handler() {
 
-            Action[] actions = { new Action("FOO"),
-                    new Action("BAR"), new Action("CAR") };
+            Action[] actions = { new Action("FOO"), new Action("BAR"),
+                    new Action("CAR") };
 
             @Override
             public Action[] getActions(Object target, Object sender) {
@@ -276,12 +276,9 @@ public class TouchScrollables extends TestBase {
                                 item.getItemProperty(propId).getValue());
                     }
 
-                    // TODO Auto-generated method stub
                 } catch (CloneNotSupportedException e) {
-                    // TODO Auto-generated catch block
                     e.printStackTrace();
                 }
-
             }
         });
         return table;
index 5c38d13d32e4df6cbc6d77fd8cb524b6334544c3..898e01cb0c79473e5d17c2a33006e543370fb25b 100644 (file)
@@ -100,17 +100,13 @@ public class BrowserFrameIsVisible extends TestBase {
                 sb.append("\n");
             }
 
-            ByteArrayInputStream istream;
             try {
-                istream = new ByteArrayInputStream(
+                return new ByteArrayInputStream(
                         sb.toString().getBytes("UTF-8"));
             } catch (UnsupportedEncodingException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
                 return null;
             }
-            return istream; // new DownloadStream (istream,null,null);
-
         }
     }
 
index 6a7501006a98fa5c605a6b6ff81d9eb5e3703ae7..23694bc4b6c38f56a50a34ecbc1c898caf3941cb 100644 (file)
@@ -33,7 +33,6 @@ public class CustomLayoutPrimaryStyleName extends TestBase {
                     }));
 
         } catch (IOException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
     }
index cabd19d1eef5d77181a924dd575f8217667290de..e272d4726999f70919d396e818f91d5b4008dcb4 100644 (file)
@@ -40,7 +40,6 @@ public class CustomLayoutUsingTemplate extends TestBase
             try {
                 is.close();
             } catch (IOException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
         }
index cae4a1ecd4da90114880670d06f2ed4c2f4c6751..ba5c468a4415e68e802d44207a9103e506416a41 100644 (file)
@@ -52,7 +52,6 @@ public class CustomLayoutWithMissingSlot extends AbstractTestUIWithLog {
 
             addComponent(cl);
         } catch (IOException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
     }
index 59ddad4f85e4e39f2ad75d584bf2d2452c183029..7f7f72ff436a679f8b91368b8ccdfc1682dc29a8 100644 (file)
@@ -53,7 +53,6 @@ public class TableInTabsheet extends AbstractReindeerTestUI {
             t.addTab(GDocs(""), "Abr 2012");
 
         } catch (MalformedURLException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
         hP.addComponent(t);
index 8106d8339c5e4d5ae2ad8bc97872f17d253a1ab8..a047a60f2c7b3a4f56a4547395b9df533f04759b 100644 (file)
@@ -110,7 +110,6 @@ public class LayoutsCssTest extends GridLayout {
 
             addComponent(custom);
         } catch (IOException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
 
index d5295d4cde3ed91366a0b01a9d381f1c620dfe08..06027bf820db0916cf3c7d4f984c3c6848749b16 100644 (file)
@@ -70,7 +70,6 @@ public class DDTest1 extends TestBase {
                 // try {
                 // Thread.sleep(200);
                 // } catch (InterruptedException e) {
-                // // TODO Auto-generated catch block
                 // e.printStackTrace();
                 // }
                 // System.out.println("Done get to work.");
index 0ead6fb1bbfc5c68d2834ebdaa8b9a10280b1747..1889558ad67fab5057ff84e85e4bf296b1c0079a 100644 (file)
@@ -122,9 +122,7 @@ public class DDTest4 extends TestBase {
                                 item.getItemProperty(propId).getValue());
                     }
 
-                    // TODO Auto-generated method stub
                 } catch (CloneNotSupportedException e) {
-                    // TODO Auto-generated catch block
                     e.printStackTrace();
                 }
 
index ede0a23c7fda65233e2e55a5e939a18f15a97e55..92097c90bef85be2536fc5b17d1faa31ce7d9f66 100644 (file)
@@ -103,7 +103,6 @@ public class PotusCrud extends VerticalLayout {
         try {
             fg.commit();
         } catch (CommitException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
     }
index 0306aea7f60ebc83191de788a04d41fa3e8b54f9..32da2b0c4644d6011150a410c0c8e9022da38df0 100644 (file)
@@ -104,11 +104,7 @@ public class DeepComponentTrees extends TestBase {
         } else {
             try {
                 l = (Layout) currentValue.newInstance();
-            } catch (InstantiationException e) {
-                // TODO Auto-generated catch block
-                e.printStackTrace();
-            } catch (IllegalAccessException e) {
-                // TODO Auto-generated catch block
+            } catch (InstantiationException | IllegalAccessException e) {
                 e.printStackTrace();
             }
         }
index f3b8dea9e9a4277de582b9377dbfa360022d5f14..8d07ac9bae5c7dbc372a43c16e46ca8816385efc 100644 (file)
@@ -111,11 +111,7 @@ public class MovingComponentsWhileOldParentInvisible extends TestBase {
             cc.setWidth("300px");
             cc.setHeight("300px");
             return cc;
-        } catch (InstantiationException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        } catch (IllegalAccessException e) {
-            // TODO Auto-generated catch block
+        } catch (InstantiationException | IllegalAccessException e) {
             e.printStackTrace();
         }
         return null;
index d95a60b70679676b01340bd6e0a60857f6b79e2e..85533a8d2e26c9974c75d0cf6da7a19e6ca08921 100644 (file)
@@ -100,11 +100,7 @@ public class TestLayoutPerformance extends TestBase {
 
         try {
             return (Layout) value.newInstance();
-        } catch (InstantiationException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        } catch (IllegalAccessException e) {
-            // TODO Auto-generated catch block
+        } catch (InstantiationException | IllegalAccessException e) {
             e.printStackTrace();
         }
         return null;
@@ -116,11 +112,7 @@ public class TestLayoutPerformance extends TestBase {
         AbstractComponent newInstance = null;
         try {
             newInstance = (AbstractComponent) componentClass.newInstance();
-        } catch (InstantiationException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        } catch (IllegalAccessException e) {
-            // TODO Auto-generated catch block
+        } catch (InstantiationException | IllegalAccessException e) {
             e.printStackTrace();
         }
         if (componentClass == Label.class) {
index 0f5baef0245eda302feae2a007fe55d757f88850..b84a1914678b002c10a9d48986da9f00f94cfb7e 100644 (file)
@@ -46,11 +46,7 @@ public abstract class BaseAlignment extends BaseLayoutTestUI {
             AbstractOrderedLayout layout = null;
             try {
                 layout = (AbstractOrderedLayout) layoutClass.newInstance();
-            } catch (InstantiationException e) {
-                // TODO Auto-generated catch block
-                e.printStackTrace();
-            } catch (IllegalAccessException e) {
-                // TODO Auto-generated catch block
+            } catch (InstantiationException | IllegalAccessException e) {
                 e.printStackTrace();
             }
             layout.setMargin(false);
index 76d3e921d7a00e2e35c6e4ac7e61f9e4d7a0d5e5..d3727a15100301456a430a642e2fedc72a0c21bb 100644 (file)
@@ -45,14 +45,12 @@ public abstract class BaseLayoutTestUI extends AbstractReindeerTestUI {
     protected static final String CALENDAR_32_PNG = "../runo/icons/16/calendar.png";
     protected static final String LOCK_16_PNG = "../runo/icons/16/lock.png";
     protected static final String GLOBE_16_PNG = "../runo/icons/16/globe.png";
-    public Alignment[] alignments = { Alignment.TOP_CENTER,
-            Alignment.TOP_LEFT, Alignment.TOP_RIGHT, Alignment.BOTTOM_CENTER,
-            Alignment.BOTTOM_LEFT, Alignment.BOTTOM_RIGHT,
-            Alignment.MIDDLE_CENTER, Alignment.MIDDLE_LEFT,
-            Alignment.MIDDLE_RIGHT };
+    public Alignment[] alignments = { Alignment.TOP_CENTER, Alignment.TOP_LEFT,
+            Alignment.TOP_RIGHT, Alignment.BOTTOM_CENTER, Alignment.BOTTOM_LEFT,
+            Alignment.BOTTOM_RIGHT, Alignment.MIDDLE_CENTER,
+            Alignment.MIDDLE_LEFT, Alignment.MIDDLE_RIGHT };
 
-    public final String[] CAPTIONS = { "",
-            "VeryLongOneWordCaption",
+    public final String[] CAPTIONS = { "", "VeryLongOneWordCaption",
             "Very long caption of 50 approximately symbols aaaaaaaaaaaa aaaaaa aaa " };
     Resource[] ICONS = { new ThemeResource(CALENDAR_32_PNG),
             new ThemeResource(LOCK_16_PNG), new ThemeResource(GLOBE_16_PNG) };
@@ -78,11 +76,7 @@ public abstract class BaseLayoutTestUI extends AbstractReindeerTestUI {
             l1.setSpacing(false);
             l2.setMargin(false);
             l2.setSpacing(false);
-        } catch (InstantiationException e1) {
-            // TODO Auto-generated catch block
-            e1.printStackTrace();
-        } catch (IllegalAccessException e1) {
-            // TODO Auto-generated catch block
+        } catch (InstantiationException | IllegalAccessException e1) {
             e1.printStackTrace();
         }
         if (layoutClass.equals(HorizontalLayout.class)) {
@@ -194,11 +188,7 @@ public abstract class BaseLayoutTestUI extends AbstractReindeerTestUI {
                 ((AbstractOrderedLayout) curLayout).setMargin(false);
                 ((AbstractOrderedLayout) curLayout).setSpacing(false);
             }
-        } catch (InstantiationException e1) {
-            // TODO Auto-generated catch block
-            e1.printStackTrace();
-        } catch (IllegalAccessException e1) {
-            // TODO Auto-generated catch block
+        } catch (InstantiationException | IllegalAccessException e1) {
             e1.printStackTrace();
         }
         final Component[] components = new Component[CAPTIONS.length];
@@ -207,11 +197,7 @@ public abstract class BaseLayoutTestUI extends AbstractReindeerTestUI {
             AbstractComponent comp = null;
             try {
                 comp = compType.newInstance();
-            } catch (InstantiationException e) {
-                // TODO Auto-generated catch block
-                e.printStackTrace();
-            } catch (IllegalAccessException e) {
-                // TODO Auto-generated catch block
+            } catch (InstantiationException | IllegalAccessException e) {
                 e.printStackTrace();
             }
             components[i] = comp;
index 4d6e9c4c2147c8f23ce85d65e8544e046b209771..ff2389b5a4bcdcfce9b6eaa19790f5573cfd3785 100644 (file)
@@ -79,7 +79,6 @@ public class PushWebsocketDeadlockUI extends AbstractTestUIWithLog {
                         try {
                             Thread.sleep(5000);
                         } catch (InterruptedException e1) {
-                            // TODO Auto-generated catch block
                             e1.printStackTrace();
                         }
                         // Breakpoint here
index ddfbe6144435f48d1087d4933a8e83a7e06c9165..f27845e478bf25aee76c883e09739c6ae89f1b0b 100644 (file)
@@ -57,7 +57,6 @@ public class TablePushStreaming extends AbstractReindeerTestUI {
                     try {
                         Thread.sleep(200);
                     } catch (InterruptedException e) {
-                        // TODO Auto-generated catch block
                         e.printStackTrace();
                     }
                     access(new Runnable() {
@@ -68,10 +67,8 @@ public class TablePushStreaming extends AbstractReindeerTestUI {
                                     t.getVisibleColumns().length, t.size(),
                                     iteration++));
                         }
-
                     });
                 }
-
             }
         };
         Thread tr = new Thread(r);
@@ -97,9 +94,7 @@ public class TablePushStreaming extends AbstractReindeerTestUI {
                 item.getItemProperty("Property" + col).setValue(
                         "Row " + row + " col " + col + "(" + iter + ")");
             }
-
         }
-
         return ic;
     }
 
index 5cc0856a5a4e00d40012b991e864f533d0e63b37..142ab9c9a7a53cffcc21c9012a99dbef12926acd 100644 (file)
@@ -52,10 +52,8 @@ public class DownloadLargeFileResource extends TestBase {
             os.close();
             hugeFileResource = new FileResource(hugeFile);
         } catch (IOException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
-
     }
 
     @Override
index c73f104e8d68367eeed9bbca841cd43ab272965b..e7b652d8d157864c51079ed42745226277489e6f 100644 (file)
@@ -69,7 +69,6 @@ public class ResourceDownload extends TestBase {
                 try {
                     return new FileInputStream("FIXME C:/temp/file.xls");
                 } catch (FileNotFoundException e) {
-                    // TODO Auto-generated catch block
                     e.printStackTrace();
                     return null;
                 }
index 49ee5c008ab9004236455377016d46d5393c0d52..853b40fe69039cc6fa798a37e2e17ce211fb4696 100644 (file)
@@ -1491,7 +1491,6 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> {
                 try {
                     c.saveEditor();
                 } catch (CommitException e) {
-                    // TODO Auto-generated catch block
                     e.printStackTrace();
                 }
             }
index acf8e5359c535012baaa45a8c1cf0fbe1db14a08..7db4ec13700f60d0a662c59a85bd87ad8d0c3c32 100644 (file)
@@ -24,8 +24,8 @@ import org.openqa.selenium.By;
 import org.openqa.selenium.JavascriptExecutor;
 import org.openqa.selenium.WebElement;
 
-import com.vaadin.testbench.elements.TableElement;
 import com.vaadin.testbench.elements.ButtonElement;
+import com.vaadin.testbench.elements.TableElement;
 import com.vaadin.tests.tb3.MultiBrowserTest;
 
 /**
@@ -71,7 +71,6 @@ public class MemoryLeakTableTest extends MultiBrowserTest {
             try {
                 Thread.sleep(1000);
             } catch (InterruptedException e) {
-                // TODO Auto-generated catch block
                 e.printStackTrace();
             }
             btnDel.click();
index 9de53a3c28cfdb1cf81fe657b9877cdaffd210a9..98a98ffae037cc842505ffbb55e49628df2f23fd 100644 (file)
@@ -83,13 +83,7 @@ public class ChangedTB3TestLocator extends TB3TestLocator {
 
             return diffsInWorkingTree;
 
-        } catch (IOException e) {
-            e.printStackTrace();
-        } catch (NoWorkTreeException e) {
-            // TODO Auto-generated catch block
-            e.printStackTrace();
-        } catch (GitAPIException e) {
-            // TODO Auto-generated catch block
+        } catch (IOException | NoWorkTreeException | GitAPIException e) {
             e.printStackTrace();
         }
         return null;
index 86354774912caaeee7ade4aa8e61f86c56768165..efcba7a2a7dcb1dc399aaffa968ebb47490e726d 100644 (file)
@@ -47,7 +47,6 @@ public class TB3TestLocator {
             List<?> l = findClasses(baseClass, basePackage, ignorePackages);
             return l.toArray(new Class[] {});
         } catch (IOException e) {
-            // TODO Auto-generated catch block
             e.printStackTrace();
         }
         return null;
@@ -93,7 +92,6 @@ public class TB3TestLocator {
             public int compare(Class<? extends T> o1, Class<? extends T> o2) {
                 return o1.getName().compareTo(o2.getName());
             }
-
         });
 
         return classes;
@@ -134,7 +132,6 @@ public class TB3TestLocator {
                 addClassIfMatches(result, fullyQualifiedClassName, baseClass);
             }
         }
-
     }
 
     /**
@@ -227,4 +224,4 @@ public class TB3TestLocator {
 
         return true;
     }
-}
\ No newline at end of file
+}