Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-17 10:51:52 +0000
committerLars Vogel2019-06-17 10:51:52 +0000
commitf8455f34b862d5140be196d12328b2c4eb6bac7c (patch)
tree5824328e31268bfb09f83f45ca90e438011e8f7f
parent43300463fb06f41e7b13c128427de112194370de (diff)
downloadeclipse.platform.text-f8455f34b862d5140be196d12328b2c4eb6bac7c.tar.gz
eclipse.platform.text-f8455f34b862d5140be196d12328b2c4eb6bac7c.tar.xz
eclipse.platform.text-f8455f34b862d5140be196d12328b2c4eb6bac7c.zip
StringBuilder instead of StringBuffer
Change-Id: Iefefe2b40d406a866e0ce9b7b420b3b74880d536 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java2
-rw-r--r--org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
index 01f385a1c..ca91a3fb6 100644
--- a/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
+++ b/org.eclipse.jface.text.tests/src/org/eclipse/jface/text/tests/AbstractUndoManagerTest.java
@@ -443,7 +443,7 @@ public abstract class AbstractUndoManagerTest {
}
private static String createRandomString(int length) {
- final StringBuffer buffer= new StringBuffer();
+ final StringBuilder buffer= new StringBuilder();
for (int i= 0; i < length; i++)
buffer.append(getRandomCharacter());
diff --git a/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java b/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
index f621e5348..95c26b4c9 100644
--- a/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
+++ b/org.eclipse.text.tests/src/org/eclipse/text/tests/DocumentUndoManagerTest.java
@@ -403,7 +403,7 @@ public class DocumentUndoManagerTest extends TestCase {
}
private static String createRandomString(int length) {
- final StringBuffer buffer= new StringBuffer();
+ final StringBuilder buffer= new StringBuilder();
for (int i= 0; i < length; i++)
buffer.append(getRandomCharacter());

Back to the top