From: Per-Åke Minborg Date: Fri, 28 Oct 2016 16:03:12 +0000 (-0700) Subject: Pass array of length when possible X-Git-Tag: 8.0.0.alpha7~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c1a027bc699a9c7fa52c534d34ef2f5a4e455633;p=vaadin-framework.git Pass array of length when possible Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7220 --- diff --git a/server/src/main/java/com/vaadin/ui/Window.java b/server/src/main/java/com/vaadin/ui/Window.java index f41a127b0f..1e4f43067f 100644 --- a/server/src/main/java/com/vaadin/ui/Window.java +++ b/server/src/main/java/com/vaadin/ui/Window.java @@ -1382,7 +1382,7 @@ public class Window extends Panel } } super.readDesignChildren(content, context); - setAssistiveDescription(descriptions.toArray(new Component[0])); + setAssistiveDescription(descriptions.toArray(new Component[descriptions.size()])); } @Override