aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/ui/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/declarative')
-rw-r--r--server/src/main/java/com/vaadin/ui/declarative/Design.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java2
-rw-r--r--server/src/main/java/com/vaadin/ui/declarative/converters/DesignShortcutActionConverter.java4
3 files changed, 4 insertions, 4 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 78288737a0..761ce3c355 100644
--- a/server/src/main/java/com/vaadin/ui/declarative/Design.java
+++ b/server/src/main/java/com/vaadin/ui/declarative/Design.java
@@ -302,7 +302,7 @@ public class Design implements Serializable {
Character c = className.charAt(i);
if (Character.isUpperCase(c)) {
if (i > 0) {
- result.append("-");
+ result.append('-');
}
result.append(Character.toLowerCase(c));
} else {
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 cdf0c6aaee..5b5887316c 100644
--- a/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
+++ b/server/src/main/java/com/vaadin/ui/declarative/DesignAttributeHandler.java
@@ -328,7 +328,7 @@ public class DesignAttributeHandler implements Serializable {
StringBuilder builder = new StringBuilder();
for (int i = 0; i < words.length; i++) {
if (builder.length() != 0) {
- builder.append("-");
+ builder.append('-');
}
builder.append(words[i].toLowerCase());
}
diff --git a/server/src/main/java/com/vaadin/ui/declarative/converters/DesignShortcutActionConverter.java b/server/src/main/java/com/vaadin/ui/declarative/converters/DesignShortcutActionConverter.java
index aade7e80b7..63f509c9ce 100644
--- a/server/src/main/java/com/vaadin/ui/declarative/converters/DesignShortcutActionConverter.java
+++ b/server/src/main/java/com/vaadin/ui/declarative/converters/DesignShortcutActionConverter.java
@@ -166,13 +166,13 @@ public class DesignShortcutActionConverter
// handle modifiers
if (value.getModifiers() != null) {
for (int modifier : value.getModifiers()) {
- sb.append(getStringForKeycode(modifier)).append("-");
+ sb.append(getStringForKeycode(modifier)).append('-');
}
}
// handle keycode
sb.append(getStringForKeycode(value.getKeyCode()));
if (value.getCaption() != null) {
- sb.append(" ").append(value.getCaption());
+ sb.append(' ').append(value.getCaption());
}
return sb.toString();
}