summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-09-28 07:45:09 +0200
committerHenri Sara <henri.sara@gmail.com>2017-09-28 08:45:09 +0300
commit7fd440d2448587f7e9958e84c84ec2bfd30ba8a0 (patch)
treec0186a8d940f07c060fcaf4b03e82271bfa9e5c2 /client
parentcb91ab76eecbf85ad598fc5054fa2ec5ab3308f6 (diff)
downloadvaadin-framework-7fd440d2448587f7e9958e84c84ec2bfd30ba8a0.tar.gz
vaadin-framework-7fd440d2448587f7e9958e84c84ec2bfd30ba8a0.zip
Use single character for StringBuilder.append (#10102)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/extensions/ResponsiveConnector.java8
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VEmbedded.java4
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VFlash.java4
-rw-r--r--client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java8
4 files changed, 12 insertions, 12 deletions
diff --git a/client/src/main/java/com/vaadin/client/extensions/ResponsiveConnector.java b/client/src/main/java/com/vaadin/client/extensions/ResponsiveConnector.java
index f18ecb0711..17b37da617 100644
--- a/client/src/main/java/com/vaadin/client/extensions/ResponsiveConnector.java
+++ b/client/src/main/java/com/vaadin/client/extensions/ResponsiveConnector.java
@@ -104,17 +104,17 @@ public class ResponsiveConnector extends AbstractExtensionConnector
protected String constructSelectorsForTarget() {
String primaryStyle = target.getState().primaryStyleName;
StringBuilder selectors = new StringBuilder();
- selectors.append(".").append(primaryStyle);
+ selectors.append('.').append(primaryStyle);
if (target.getState().styles != null
&& target.getState().styles.size() > 0) {
for (String style : target.getState().styles) {
selectors.append(",.").append(style);
- selectors.append(",.").append(primaryStyle).append(".")
+ selectors.append(",.").append(primaryStyle).append('.')
.append(style);
- selectors.append(",.").append(style).append(".")
+ selectors.append(",.").append(style).append('.')
.append(primaryStyle);
- selectors.append(",.").append(primaryStyle).append("-")
+ selectors.append(",.").append(primaryStyle).append('-')
.append(style);
}
}
diff --git a/client/src/main/java/com/vaadin/client/ui/VEmbedded.java b/client/src/main/java/com/vaadin/client/ui/VEmbedded.java
index 5f4e801a44..54f3fdcf4e 100644
--- a/client/src/main/java/com/vaadin/client/ui/VEmbedded.java
+++ b/client/src/main/java/com/vaadin/client/ui/VEmbedded.java
@@ -138,7 +138,7 @@ public class VEmbedded extends HTML {
}
// End object tag
- html.append(">");
+ html.append('>');
// Ensure we have an movie parameter
Map<String, String> parameters = state.parameters;
@@ -166,7 +166,7 @@ public class VEmbedded extends HTML {
// Add the parameters to the Embed
for (String name : parameters.keySet()) {
html.append(WidgetUtil.escapeAttribute(name));
- html.append("=");
+ html.append('=');
html.append("\"" + WidgetUtil.escapeAttribute(parameters.get(name))
+ "\"");
}
diff --git a/client/src/main/java/com/vaadin/client/ui/VFlash.java b/client/src/main/java/com/vaadin/client/ui/VFlash.java
index 6c45cf52ac..40f089428d 100644
--- a/client/src/main/java/com/vaadin/client/ui/VFlash.java
+++ b/client/src/main/java/com/vaadin/client/ui/VFlash.java
@@ -225,7 +225,7 @@ public class VFlash extends HTML {
}
// End object tag
- html.append(">");
+ html.append('>');
// Ensure we have an movie parameter
if (embedParams.get("movie") == null) {
@@ -263,7 +263,7 @@ public class VFlash extends HTML {
// Add the parameters to the Embed
for (String name : embedParams.keySet()) {
html.append(WidgetUtil.escapeAttribute(name));
- html.append("=");
+ html.append('=');
html.append("\"" + WidgetUtil.escapeAttribute(embedParams.get(name))
+ "\"");
}
diff --git a/client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java b/client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java
index f0b42f76d9..5e4fdb4d7d 100644
--- a/client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java
@@ -111,17 +111,17 @@ public class PopupViewConnector extends AbstractHasComponentsConnector
.contains(VOverlay.ADDITIONAL_CLASSNAME_ANIMATE_IN);
if (isAnimatingIn) {
- styleBuf.append(" ");
+ styleBuf.append(' ');
styleBuf.append(primaryName);
- styleBuf.append("-");
+ styleBuf.append('-');
styleBuf.append(VOverlay.ADDITIONAL_CLASSNAME_ANIMATE_IN);
}
if (ComponentStateUtil.hasStyles(getState())) {
for (String style : getState().styles) {
- styleBuf.append(" ");
+ styleBuf.append(' ');
styleBuf.append(primaryName);
- styleBuf.append("-");
+ styleBuf.append('-');
styleBuf.append(style);
}
}