From aa225cce86d34fc656e091f5eb62f73d17351345 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Mon, 18 Sep 2017 19:47:48 +0200 Subject: Remove unneeded ArrayList construction --- .../com/vaadin/tests/components/orderedlayout/BoxLayoutTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'uitest/src') 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 sizes = new ArrayList<>(); - sizes.addAll(Arrays.asList("100px", "30em", "100%")); + List 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); -- cgit v1.2.3