diff options
author | Lars Vogel | 2017-07-13 18:22:36 +0000 |
---|---|---|
committer | Lars Vogel | 2017-07-13 18:22:36 +0000 |
commit | 919d2124f32722d0b093ff5c2adb2b98c1799340 (patch) | |
tree | 889ab6527b2eb795680085549a3c1deec5f6c404 | |
parent | 126cd981c14b7afe5dff9cd865a98b290348637f (diff) | |
download | eclipse.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>
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 6bcf8a12bee..54a7e2ccb69 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 a0d22a5ebe1..d24b81a9e58 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()); } } |