aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui
diff options
context:
space:
mode:
authorPer-Åke Minborg <minborg@speedment.com>2016-10-28 09:01:19 -0700
committerVaadin Code Review <review@vaadin.com>2016-11-04 13:36:29 +0000
commit92f1d4c34c5082bbfc8e328da78d66e6f772b704 (patch)
treecce94eff72bf30f227d0d57a8438758c3631e278 /server/src/main/java/com/vaadin/ui
parent41c183a9b68c72af04f8be1c1a0a09d01b518652 (diff)
downloadvaadin-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.java2
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(