Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-07-13 14:22:36 -0400
committerLars Vogel2017-07-13 14:22:36 -0400
commit919d2124f32722d0b093ff5c2adb2b98c1799340 (patch)
tree889ab6527b2eb795680085549a3c1deec5f6c404
parent126cd981c14b7afe5dff9cd865a98b290348637f (diff)
downloadeclipse.platform.text-919d2124f32722d0b093ff5c2adb2b98c1799340.tar.gz
eclipse.platform.text-919d2124f32722d0b093ff5c2adb2b98c1799340.tar.xz
eclipse.platform.text-919d2124f32722d0b093ff5c2adb2b98c1799340.zip
Bug 516535 - Replace StringBuffer with StringBuilder in
eclipse.platform.text The easy parts of org.eclipse.core.filebuffers.tests Change-Id: I6cc53f9c8c6458ee4fbe7437da1211884d0c7948 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java2
-rw-r--r--org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/MockDocumentSetupParticipants.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
index 6bcf8a12b..54a7e2ccb 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/FileBufferFunctions.java
@@ -862,7 +862,7 @@ public abstract class FileBufferFunctions {
IPath newLocation= moveUnderlyingFile();
if (newLocation != null) {
if (listener.count != 1 || listener.buffer != fileBuffer || !newLocation.equals(listener.newLocation)) {
- StringBuffer buf= new StringBuffer();
+ StringBuilder buf= new StringBuilder();
buf.append("Wrong listener notifcation in " + getClass().getName() + ":\n");
buf.append("listener.count: " + listener.count + " (expected: 1)\n");
if (newLocation.equals(listener.newLocation))
diff --git a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/MockDocumentSetupParticipants.java b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/MockDocumentSetupParticipants.java
index a0d22a5eb..d24b81a9e 100644
--- a/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/MockDocumentSetupParticipants.java
+++ b/org.eclipse.core.filebuffers.tests/src/org/eclipse/core/filebuffers/tests/MockDocumentSetupParticipants.java
@@ -58,7 +58,7 @@ public class MockDocumentSetupParticipants {
@Override
public void setup(IDocument document, IPath location, LocationKind locationKind) {
if (locationKind == LocationKind.IFILE)
- append(document, new StringBuffer(location.toPortableString()).reverse().toString());
+ append(document, new StringBuilder(location.toPortableString()).reverse().toString());
}
}
@@ -66,7 +66,7 @@ public class MockDocumentSetupParticipants {
@Override
public void setup(IDocument document, IPath location, LocationKind locationKind) {
if (locationKind == LocationKind.LOCATION)
- append(document, new StringBuffer(location.toPortableString()).reverse().toString());
+ append(document, new StringBuilder(location.toPortableString()).reverse().toString());
}
}
@@ -74,7 +74,7 @@ public class MockDocumentSetupParticipants {
@Override
public void setup(IDocument document, IPath location, LocationKind locationKind) {
if (locationKind == LocationKind.NORMALIZE)
- append(document, new StringBuffer(location.toPortableString()).reverse().toString());
+ append(document, new StringBuilder(location.toPortableString()).reverse().toString());
}
}

Back to the top