summaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-18 19:47:48 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-19 10:51:57 +0300
commitaa225cce86d34fc656e091f5eb62f73d17351345 (patch)
tree884500dd5f23086f0b51067ec1e9e7172375523f /uitest/src/main/java
parent797cc0104eaf291afbed913f1c748b1f76bbf522 (diff)
downloadvaadin-framework-aa225cce86d34fc656e091f5eb62f73d17351345.tar.gz
vaadin-framework-aa225cce86d34fc656e091f5eb62f73d17351345.zip
Remove unneeded ArrayList construction
Diffstat (limited to 'uitest/src/main/java')
-rw-r--r--uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java b/uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
index b2f9b29bbf..f3cb05d158 100644
--- a/uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
+++ b/uitest/src/main/java/com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java
@@ -2,6 +2,7 @@ package com.vaadin.tests.components.orderedlayout;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.List;
import com.vaadin.annotations.PreserveOnRefresh;
import com.vaadin.annotations.Theme;
@@ -166,8 +167,7 @@ public class BoxLayoutTest extends AbstractReindeerTestUI {
controls.addComponent(layout);
layout.addComponent(new Label("Layout"));
- ArrayList<String> sizes = new ArrayList<>();
- sizes.addAll(Arrays.asList("100px", "30em", "100%"));
+ List<String> sizes = Arrays.asList("100px", "30em", "100%");
final NativeSelect width = new NativeSelect(null, sizes);
width.setImmediate(true);
@@ -256,8 +256,7 @@ public class BoxLayoutTest extends AbstractReindeerTestUI {
root.addComponent(component);
component.addComponent(new Label("Component"));
- sizes = new ArrayList<>();
- sizes.addAll(Arrays.asList("50px", "200px", "10em", "50%", "100%"));
+ sizes = Arrays.asList("50px", "200px", "10em", "50%", "100%");
componentWidth = new NativeSelect(null, sizes);
componentWidth.setImmediate(true);