diff options
author | Per-Åke Minborg <minborg@speedment.com> | 2016-10-28 08:28:56 -0700 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2016-11-02 15:04:46 +0000 |
commit | 73078c7560d40db80dae6a6fb8047c29a92dd8d0 (patch) | |
tree | 0a4d37ada03d6c3be66e8ea1f6fe996ea457eb16 /server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java | |
parent | 5b5f03faa0e0db7f2db71dd61623f370c9d843da (diff) | |
download | vaadin-framework-73078c7560d40db80dae6a6fb8047c29a92dd8d0.tar.gz vaadin-framework-73078c7560d40db80dae6a6fb8047c29a92dd8d0.zip |
Convert to for-each loop, Stream and switch-over-strings
Change-Id: I80b73b653e97904605dc62484a7448f3bfbf7218
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.java | 4 |
1 files changed, 2 insertions, 2 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 44248d095b..2fad5fb14f 100644 --- a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java +++ b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java @@ -318,11 +318,11 @@ public class DesignAttributeHandler implements Serializable { propertyName = removeSubsequentUppercase(propertyName); String[] words = propertyName.split("(?<!^)(?=[A-Z])"); StringBuilder builder = new StringBuilder(); - for (int i = 0; i < words.length; i++) { + for (String word : words) { if (builder.length() > 0) { builder.append("-"); } - builder.append(words[i].toLowerCase()); + builder.append(word.toLowerCase()); } return builder.toString(); } |