]> source.dussan.org Git - vaadin-framework.git/commit
Avoid object creation in getAllChildrenIterable in most cases. (#14142)
authorFabian Lange <lange.fabian@gmail.com>
Thu, 3 Jul 2014 21:52:05 +0000 (23:52 +0200)
committerFabian Lange <lange.fabian@gmail.com>
Fri, 4 Jul 2014 10:11:50 +0000 (12:11 +0200)
commita3578d3ac293442b64cbc5f5feb4cb9106799fdb
tree7fd80df9f84ac6ea14a2078fc266bdd1f3745526
parent3db6df2eabcb7c3d9461ea6ff2b89b95cf6446d3
Avoid object creation in getAllChildrenIterable in most cases. (#14142)

API change from:
    public static Iterable<ClientConnector> getAllChildrenIterable(final ClientConnector connector)
to
    public static Iterable<? extends ClientConnector> getAllChildrenIterable(final ClientConnector connector)

avoids creating wrappers in case the component has either no subcomponents
or no extensions. This covers the vast majority of components.

Change-Id: I48ffd2f26f09c265fae6e1aaabdbaa655d52ffb8
server/src/com/vaadin/server/AbstractClientConnector.java
server/src/com/vaadin/ui/ConnectorTracker.java
server/tests/src/com/vaadin/tests/server/TestClassesSerializable.java