Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-06-21 03:12:34 -0400
committerLars Vogel2017-06-21 15:38:57 -0400
commita111e3ded59c144bea983a849a1316df021e00b4 (patch)
treeb1217e62986fa8e6a2422e1a7e05c5dd9a127ae5 /org.eclipse.text/src/org/eclipse/text/undo
parent06ebc289e0676f10d00bf05d1a2ee8020e9eb40f (diff)
downloadeclipse.platform.text-a111e3ded59c144bea983a849a1316df021e00b4.tar.gz
eclipse.platform.text-a111e3ded59c144bea983a849a1316df021e00b4.tar.xz
eclipse.platform.text-a111e3ded59c144bea983a849a1316df021e00b4.zip
Bug 516535 - Replace StringBuffer with StringBuilder in
eclipse.platform.text Change-Id: Ia7089d167c24489674565e8bbb08d33773ac8445 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.text/src/org/eclipse/text/undo')
-rw-r--r--org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
index a4755de51..8d9c43ace 100644
--- a/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
+++ b/org.eclipse.text/src/org/eclipse/text/undo/DocumentUndoManager.java
@@ -372,7 +372,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
@Override
public String toString() {
String delimiter= ", "; //$NON-NLS-1$
- StringBuffer text= new StringBuffer(super.toString());
+ StringBuilder text= new StringBuilder(super.toString());
text.append("\n"); //$NON-NLS-1$
text.append(this.getClass().getName());
text.append(" undo modification stamp: "); //$NON-NLS-1$
@@ -711,7 +711,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
/**
* Text buffer to collect viewer content which has been replaced
*/
- private StringBuffer fPreservedTextBuffer;
+ private StringBuilder fPreservedTextBuffer;
/**
* The document modification stamp for undo.
@@ -726,7 +726,7 @@ public class DocumentUndoManager implements IDocumentUndoManager {
/**
* Text buffer to collect text which is inserted into the viewer
*/
- private StringBuffer fTextBuffer;
+ private StringBuilder fTextBuffer;
/** Indicates inserting state. */
private boolean fInserting= false;
@@ -1142,8 +1142,8 @@ public class DocumentUndoManager implements IDocumentUndoManager {
// open up the current text edit
fCurrent= new UndoableTextChange(this);
fPreviousDelete= new UndoableTextChange(this);
- fTextBuffer= new StringBuffer();
- fPreservedTextBuffer= new StringBuffer();
+ fTextBuffer= new StringBuilder();
+ fPreservedTextBuffer= new StringBuilder();
addListeners();
}

Back to the top