From b6b70f6b9dc3d00c71f6150d62d583698053f631 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Per-=C3=85ke=20Minborg?= Date: Fri, 28 Oct 2016 10:48:46 -0700 Subject: [PATCH] Replace Vector with List and ArrayList Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7228 --- .../java/com/vaadin/server/ComponentSizeValidator.java | 3 +-- .../src/main/java/com/vaadin/server/JsonPaintTarget.java | 9 +++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/src/main/java/com/vaadin/server/ComponentSizeValidator.java b/server/src/main/java/com/vaadin/server/ComponentSizeValidator.java index de6f5d0a9a..129000b3bb 100644 --- a/server/src/main/java/com/vaadin/server/ComponentSizeValidator.java +++ b/server/src/main/java/com/vaadin/server/ComponentSizeValidator.java @@ -24,7 +24,6 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Stack; -import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; @@ -197,7 +196,7 @@ public class ComponentSizeValidator implements Serializable { private final boolean invalidHeight; private final boolean invalidWidth; - private final Vector subErrors = new Vector<>(); + private final List subErrors = new ArrayList<>(); public InvalidLayout(Component component, boolean height, boolean width) { diff --git a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java index d5276aefaf..3d0b7393e6 100644 --- a/server/src/main/java/com/vaadin/server/JsonPaintTarget.java +++ b/server/src/main/java/com/vaadin/server/JsonPaintTarget.java @@ -25,13 +25,14 @@ import java.util.Iterator; import java.util.Map; import java.util.Set; import java.util.Stack; -import java.util.Vector; import java.util.logging.Level; import java.util.logging.Logger; import com.vaadin.ui.Alignment; import com.vaadin.ui.Component; import com.vaadin.ui.CustomLayout; +import java.util.ArrayList; +import java.util.List; /** * User Interface Description Language Target. @@ -728,11 +729,11 @@ public class JsonPaintTarget implements PaintTarget { class JsonTag implements Serializable { boolean firstField = false; - Vector variables = new Vector<>(); + List variables = new ArrayList<>(); - Vector children = new Vector<>(); + List children = new ArrayList<>(); - Vector attr = new Vector<>(); + List attr = new ArrayList<>(); StringBuilder data = new StringBuilder(); -- 2.39.5