Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-06-28 13:35:28 -0400
committerLars Vogel2017-06-28 13:35:28 -0400
commit281c15cf322e33112a7e1d3b8bab687db4f3c2a4 (patch)
tree1c1f000a8e44f665e75fee83449a360607e5da8b
parent69ff1f7ef155a71ea65690e774d913a6369610b3 (diff)
downloadeclipse.platform.text-281c15cf322e33112a7e1d3b8bab687db4f3c2a4.tar.gz
eclipse.platform.text-281c15cf322e33112a7e1d3b8bab687db4f3c2a4.tar.xz
eclipse.platform.text-281c15cf322e33112a7e1d3b8bab687db4f3c2a4.zip
Bug 516535 - Replace StringBuffer with StringBuilder in
eclipse.platform.text Change-Id: Idde1f2518de4a8d94305afb6cf29a1892418ade0 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/rulers/StringSetSerializer.java2
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/rulers/StringSetSerializer.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/rulers/StringSetSerializer.java
index 628469844..5684bb753 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/rulers/StringSetSerializer.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/rulers/StringSetSerializer.java
@@ -24,7 +24,7 @@ public final class StringSetSerializer {
public static String serialize(Set<String> strings) {
Assert.isLegal(strings != null);
- StringBuffer buf= new StringBuffer(strings.size() * 20);
+ StringBuilder buf= new StringBuilder(strings.size() * 20);
for (Iterator<String> it= strings.iterator(); it.hasNext();) {
buf.append(it.next());
if (it.hasNext())
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
index 4cce8defb..ab9dda7df 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/TextViewerDeleteLineTarget.java
@@ -78,7 +78,7 @@ public class TextViewerDeleteLineTarget implements IDeleteLineTarget {
/** The clip board. */
private Clipboard fClipboard;
/** A string buffer. */
- private final StringBuffer fBuffer= new StringBuffer();
+ private final StringBuilder fBuffer= new StringBuilder();
/** The delete flag indicates if a deletion is in progress. */
private boolean fDeleting;

Back to the top