diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-09-23 08:45:49 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-09-23 09:45:49 +0300 |
commit | 40d15b32e341a38dacc24cc3ec79ab3ff0a25a50 (patch) | |
tree | ea0f03e7e3b4ed2af1e632065b4c7e8c30eb9d76 /uitest/src/main/java/com/vaadin/v7 | |
parent | d3c752e0f2abec08cd98a66495d1345ad0f56d83 (diff) | |
download | vaadin-framework-40d15b32e341a38dacc24cc3ec79ab3ff0a25a50.tar.gz vaadin-framework-40d15b32e341a38dacc24cc3ec79ab3ff0a25a50.zip |
Construct array inline (#10068)
And some trivial test enhancements
Diffstat (limited to 'uitest/src/main/java/com/vaadin/v7')
5 files changed, 5 insertions, 5 deletions
diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/grid/GridThemeUI.java b/uitest/src/main/java/com/vaadin/v7/tests/components/grid/GridThemeUI.java index e03339467b..815b48eda1 100644 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/grid/GridThemeUI.java +++ b/uitest/src/main/java/com/vaadin/v7/tests/components/grid/GridThemeUI.java @@ -40,7 +40,7 @@ public class GridThemeUI extends AbstractTestUIWithLog { private Grid grid; - protected static String[] columns = new String[] { "firstName", "lastName", + protected static String[] columns = { "firstName", "lastName", "gender", "birthDate", "age", "alive", "address.streetAddress", "address.postalCode", "address.city", "address.country" }; diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/textarea/TextAreaCursorPosition.java b/uitest/src/main/java/com/vaadin/v7/tests/components/textarea/TextAreaCursorPosition.java index f5f0b6890b..7834bf96ee 100644 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/textarea/TextAreaCursorPosition.java +++ b/uitest/src/main/java/com/vaadin/v7/tests/components/textarea/TextAreaCursorPosition.java @@ -26,7 +26,7 @@ public class TextAreaCursorPosition extends TestBase { addComponent(new Button("Force position update")); } - public void addListener(AbstractField newField) { + public void addListener(AbstractField<?> newField) { AbstractTextField newTextField = (AbstractTextField) newField; newTextField.setValueChangeMode(ValueChangeMode.EAGER); newTextField.addValueChangeListener(event -> { diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents.java b/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents.java index 406309f471..207d62d157 100644 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents.java +++ b/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents.java @@ -81,7 +81,7 @@ public class TextChangeEvents extends TestBase { */ private class VaadinDeveloperNameField extends TextField implements TextChangeListener { - private String[] names = new String[] { "Matti Tahvonen", + private String[] names = { "Matti Tahvonen", "Marc Englund", "Joonas Lehtinen", "Jouni Koivuviita", "Marko Grönroos", "Artur Signell" }; diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents2.java b/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents2.java index 4cface820c..4dd7dfd527 100644 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents2.java +++ b/uitest/src/main/java/com/vaadin/v7/tests/components/textfield/TextChangeEvents2.java @@ -122,7 +122,7 @@ public class TextChangeEvents2 extends TestBase { } { - final TextField[] tfs = new TextField[] { new TextField(), + final TextField[] tfs = { new TextField(), new TextField(), new TextField(), new TextField() }; HorizontalLayout hl = new HorizontalLayout(); hl.setCaption("Blää"); diff --git a/uitest/src/main/java/com/vaadin/v7/tests/components/tree/SimpleTree.java b/uitest/src/main/java/com/vaadin/v7/tests/components/tree/SimpleTree.java index 49b790e85a..934c25f330 100644 --- a/uitest/src/main/java/com/vaadin/v7/tests/components/tree/SimpleTree.java +++ b/uitest/src/main/java/com/vaadin/v7/tests/components/tree/SimpleTree.java @@ -28,7 +28,7 @@ public class SimpleTree extends TestBase implements Action.Handler { // Actions for the context menu private static final Action ACTION_ADD = new Action("Add child item"); private static final Action ACTION_DELETE = new Action("Delete"); - private static final Action[] ACTIONS = new Action[] { ACTION_ADD, + private static final Action[] ACTIONS = { ACTION_ADD, ACTION_DELETE }; private Tree tree; |