diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-28 09:01:19 -0700 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2016-11-04 13:36:29 +0000 |
commit | 92f1d4c34c5082bbfc8e328da78d66e6f772b704 (patch) | |
tree | cce94eff72bf30f227d0d57a8438758c3631e278 /server/src/main/java/com/vaadin/ui | |
parent | 41c183a9b68c72af04f8be1c1a0a09d01b518652 (diff) | |
download | vaadin-framework-92f1d4c34c5082bbfc8e328da78d66e6f772b704.tar.gz vaadin-framework-92f1d4c34c5082bbfc8e328da78d66e6f772b704.zip |
Use Collection .isEmpty() over .size() == 0
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf721f
Diffstat (limited to 'server/src/main/java/com/vaadin/ui')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/declarative/Design.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/declarative/Design.java b/server/src/main/java/com/vaadin/ui/declarative/Design.java index 0c5595028e..b5b6762f20 100644 --- a/server/src/main/java/com/vaadin/ui/declarative/Design.java +++ b/server/src/main/java/com/vaadin/ui/declarative/Design.java @@ -454,7 +454,7 @@ public class Design implements Serializable { "The first level of a component hierarchy should contain at most one root component, but found " + children.size() + "."); } - Element element = children.size() == 0 ? null : children.first(); + Element element = children.isEmpty() ? null : children.first(); if (componentRoot != null) { if (element == null) { throw new DesignException( |