]> source.dussan.org Git - vaadin-framework.git/commitdiff
Pass array of length when possible
authorPer-Åke Minborg <minborg@speedment.com>
Fri, 28 Oct 2016 16:03:12 +0000 (09:03 -0700)
committerVaadin Code Review <review@vaadin.com>
Fri, 4 Nov 2016 13:36:30 +0000 (13:36 +0000)
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7220

server/src/main/java/com/vaadin/ui/Window.java

index f41a127b0fade9c6d6fc420a82d91b837f7343dd..1e4f43067fccfd01c9afa29f6599c79a9c5c51a4 100644 (file)
@@ -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