summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAhmed Ashour <asashour@yahoo.com>2017-10-09 12:49:10 +0200
committerHenri Sara <henri.sara@gmail.com>2017-10-09 13:49:10 +0300
commit9494818412d3f7d9aa9b8817dd6d62bb64963753 (patch)
tree7d53ae6fb3d1da2da5a47da8460a52980aaea2f4 /client
parent915463b21a339b6bbc741ac1ce325ba209d821c9 (diff)
downloadvaadin-framework-9494818412d3f7d9aa9b8817dd6d62bb64963753.tar.gz
vaadin-framework-9494818412d3f7d9aa9b8817dd6d62bb64963753.zip
Use StringBuilder instead of StringBuffer (#10154)
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/Action.java2
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VComboBox.java2
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VMenuBar.java2
-rw-r--r--client/src/main/java/com/vaadin/client/ui/menubar/MenuBarConnector.java2
-rw-r--r--client/src/main/java/com/vaadin/client/ui/popupview/PopupViewConnector.java2
-rwxr-xr-xclient/src/main/java/com/vaadin/client/widgets/Grid.java2
6 files changed, 6 insertions, 6 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/Action.java b/client/src/main/java/com/vaadin/client/ui/Action.java
index ed81eefb1c..d0a05ca6e7 100644
--- a/client/src/main/java/com/vaadin/client/ui/Action.java
+++ b/client/src/main/java/com/vaadin/client/ui/Action.java
@@ -40,7 +40,7 @@ public abstract class Action implements Command {
public abstract void execute();
public String getHTML() {
- final StringBuffer sb = new StringBuffer();
+ final StringBuilder sb = new StringBuilder();
sb.append("<div>");
// Could store the icon in a field instead, but it doesn't really matter
// right now because Actions are recreated every time they are needed
diff --git a/client/src/main/java/com/vaadin/client/ui/VComboBox.java b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
index f38d76e11d..37b94ef8d6 100644
--- a/client/src/main/java/com/vaadin/client/ui/VComboBox.java
+++ b/client/src/main/java/com/vaadin/client/ui/VComboBox.java
@@ -136,7 +136,7 @@ public class VComboBox extends Composite implements Field, KeyDownHandler,
@Override
public String getDisplayString() {
- final StringBuffer sb = new StringBuffer();
+ final StringBuilder sb = new StringBuilder();
ApplicationConnection client = connector.getConnection();
final Icon icon = client
.getIcon(client.translateVaadinUri(untranslatedIconUri));
diff --git a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
index 2a1ba37ac8..8f0026dc14 100644
--- a/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
+++ b/client/src/main/java/com/vaadin/client/ui/VMenuBar.java
@@ -220,7 +220,7 @@ public class VMenuBar extends SimpleFocusablePanel
*/
public String buildItemHTML(UIDL item) {
// Construct html from the text and the optional icon
- StringBuffer itemHTML = new StringBuffer();
+ StringBuilder itemHTML = new StringBuilder();
if (item.hasAttribute("separator")) {
itemHTML.append("<span>---</span>");
} else {
diff --git a/client/src/main/java/com/vaadin/client/ui/menubar/MenuBarConnector.java b/client/src/main/java/com/vaadin/client/ui/menubar/MenuBarConnector.java
index aa0ee3ab7b..69fe368768 100644
--- a/client/src/main/java/com/vaadin/client/ui/menubar/MenuBarConnector.java
+++ b/client/src/main/java/com/vaadin/client/ui/menubar/MenuBarConnector.java
@@ -73,7 +73,7 @@ public class MenuBarConnector extends AbstractComponentConnector
if (null != getState()
&& !ComponentStateUtil.isUndefinedWidth(getState())) {
UIDL moreItemUIDL = options.getChildUIDL(0);
- StringBuffer itemHTML = new StringBuffer();
+ StringBuilder itemHTML = new StringBuilder();
if (moreItemUIDL.hasAttribute("icon")) {
Icon icon = client
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 5e4fdb4d7d..07a1660965 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
@@ -102,7 +102,7 @@ public class PopupViewConnector extends AbstractHasComponentsConnector
getWidget().preparePopup(getWidget().popup);
getWidget().popup.setPopupConnector(getChildComponents().get(0));
- final StringBuffer styleBuf = new StringBuffer();
+ final StringBuilder styleBuf = new StringBuilder();
final String primaryName = getWidget().popup.getStylePrimaryName();
styleBuf.append(primaryName);
diff --git a/client/src/main/java/com/vaadin/client/widgets/Grid.java b/client/src/main/java/com/vaadin/client/widgets/Grid.java
index 81f6756930..2b623804cf 100755
--- a/client/src/main/java/com/vaadin/client/widgets/Grid.java
+++ b/client/src/main/java/com/vaadin/client/widgets/Grid.java
@@ -4081,7 +4081,7 @@ public class Grid<T> extends ResizeComposite implements HasSelectionHandlers<T>,
}
private String createHTML(Column<?, T> column) {
- final StringBuffer buf = new StringBuffer();
+ final StringBuilder buf = new StringBuilder();
buf.append("<span class=\"");
if (column.isHidden()) {
buf.append("v-off");