Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-17 10:51:15 +0000
committerLars Vogel2019-06-17 14:28:43 +0000
commit0beb11485a6b676a6a0b1b04e13810a2880ba859 (patch)
tree45821fada87091d6b447714431595388deba39e6 /examples
parente98ef744fd223b2436e2c210f6c69e87b2457390 (diff)
downloadeclipse.platform.swt-0beb11485a6b676a6a0b1b04e13810a2880ba859.tar.gz
eclipse.platform.swt-0beb11485a6b676a6a0b1b04e13810a2880ba859.tar.xz
eclipse.platform.swt-0beb11485a6b676a6a0b1b04e13810a2880ba859.zip
StringBuilder instead of StringBuffer
Change-Id: Ie88ea44706483cbe2d1004ca201c38c3213dc5cf Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java
index 09c9d2fc29..d9cf55021b 100644
--- a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet373.java
@@ -199,7 +199,7 @@ public class Snippet373 {
button2.setText("Refresh-Both Monitors : Zoom");
Text text2 = new Text(shell, SWT.BORDER);
Monitor[] monitors = display.getMonitors();
- StringBuffer text2String = new StringBuffer();
+ StringBuilder text2String = new StringBuilder();
for (int i = 0; i < monitors.length; i++) {
text2String.append(monitors[i].getZoom() + (i < (monitors.length - 1) ? " - " : ""));
}
@@ -208,7 +208,7 @@ public class Snippet373 {
@Override
public void mouseDown(MouseEvent e) {
Monitor[] monitors = display.getMonitors();
- StringBuffer text2String = new StringBuffer();
+ StringBuilder text2String = new StringBuilder();
for (int i = 0; i < monitors.length; i++) {
text2String.append(monitors[i].getZoom() + (i < (monitors.length - 1) ? " - " : ""));
}

Back to the top