diff options
-rw-r--r-- | server/src/main/java/com/vaadin/ui/declarative/Design.java | 4 |
1 files changed, 2 insertions, 2 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 0b78a9cbde..a2c698c6bd 100644 --- a/server/src/main/java/com/vaadin/ui/declarative/Design.java +++ b/server/src/main/java/com/vaadin/ui/declarative/Design.java @@ -234,14 +234,14 @@ public class Design implements Serializable { throw new DesignException("Unknown tag: " + tagName); } String[] classNameParts = parts[1].split("-"); - String className = ""; + StringBuilder className = new StringBuilder(); for (String classNamePart : classNameParts) { // Split will ignore trailing and multiple dashes but that // should be // ok // <vaadin-button--> will be resolved to <vaadin-button> // <vaadin--button> will be resolved to <vaadin-button> - className += SharedUtil.capitalize(classNamePart); + className.append(SharedUtil.capitalize(classNamePart)); } String qualifiedClassName = packageName + "." + className; |