Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-07-07 12:36:51 -0400
committerLars Vogel2017-07-07 12:37:31 -0400
commit4aef24b8f49e9f9dba86fa84193acd60ac96d360 (patch)
tree2fe460f12ed300c5d6d2971e9967493aefa9a296
parentf609baac33285bc3256b35fc12ec1c9cf76d4beb (diff)
downloadeclipse.platform.text-4aef24b8f49e9f9dba86fa84193acd60ac96d360.tar.gz
eclipse.platform.text-4aef24b8f49e9f9dba86fa84193acd60ac96d360.tar.xz
eclipse.platform.text-4aef24b8f49e9f9dba86fa84193acd60ac96d360.zip
Bug 516535 - Replace StringBuffer with StringBuilder in
eclipse.platform.text Change-Id: Ic621f20dbbb2111d87c6703492a0e688aca3a152 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java2
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java
index 6ac8b9de7..1f6f07b45 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/FileStoreTextFileBuffer.java
@@ -532,7 +532,7 @@ public class FileStoreTextFileBuffer extends FileStoreFileBuffer implements ITex
}
in= new BufferedReader(new InputStreamReader(contentStream, encoding), BUFFER_SIZE);
- StringBuffer buffer= new StringBuffer(BUFFER_SIZE);
+ StringBuilder buffer= new StringBuilder(BUFFER_SIZE);
char[] readBuffer= new char[READER_CHUNK_SIZE];
int n= in.read(readBuffer);
while (n > 0) {
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java
index 95618a437..c5a24ddfc 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceTextFileBuffer.java
@@ -521,7 +521,7 @@ public class ResourceTextFileBuffer extends ResourceFileBuffer implements ITextF
}
in= new BufferedReader(new InputStreamReader(contentStream, encoding), BUFFER_SIZE);
- StringBuffer buffer= new StringBuffer(BUFFER_SIZE);
+ StringBuilder buffer= new StringBuilder(BUFFER_SIZE);
char[] readBuffer= new char[READER_CHUNK_SIZE];
int n= in.read(readBuffer);
while (n > 0) {

Back to the top