aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-21 10:51:51 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-21 11:51:51 +0300
commit867006d2f81aa813c36f614fc6f1b98a5937c5f3 (patch)
treefb2c34b1b58db8b3610a4a47010196069e90c436 /server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
parent719b12e44afc8b62458b1e29d1503e28544acc24 (diff)
downloadvaadin-framework-867006d2f81aa813c36f614fc6f1b98a5937c5f3.tar.gz
vaadin-framework-867006d2f81aa813c36f614fc6f1b98a5937c5f3.zip
Use String.isEmpty() (#10045)
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java')
-rw-r--r--server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
index dde1624352..0fbfe9c6b5 100644
--- a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
+++ b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
@@ -327,7 +327,7 @@ public class DesignAttributeHandler implements Serializable {
String[] words = propertyName.split("(?<!^)(?=[A-Z])");
StringBuilder builder = new StringBuilder();
for (int i = 0; i < words.length; i++) {
- if (builder.length() > 0) {
+ if (builder.length() != 0) {
builder.append("-");
}
builder.append(words[i].toLowerCase());