Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-07-13 14:29:38 -0400
committerLars Vogel2017-07-17 14:27:58 -0400
commite736e1c522e77d536e332c65ec2f0cbc8bd70d5d (patch)
tree20b5a73fa576a272916371191c62801897a19d61
parentdab68c83b2a5c87bee4fbc136fd13a4035004dcd (diff)
downloadeclipse.platform.text-e736e1c522e77d536e332c65ec2f0cbc8bd70d5d.tar.gz
eclipse.platform.text-e736e1c522e77d536e332c65ec2f0cbc8bd70d5d.tar.xz
eclipse.platform.text-e736e1c522e77d536e332c65ec2f0cbc8bd70d5d.zip
Bug 519656 - Replace StringBuffer with StringBuilder in
org.eclipse.ui.editors Using drop-in replacement Change-Id: I60aad302867611cc1e4cedf26b83bbe99e9b8d34 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/StorageDocumentProvider.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/quickdiff/LastSaveReferenceProvider.java2
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/StorageDocumentProvider.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/StorageDocumentProvider.java
index d3d573795..1434673bd 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/StorageDocumentProvider.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/StorageDocumentProvider.java
@@ -138,7 +138,7 @@ public class StorageDocumentProvider extends AbstractDocumentProvider implements
encoding= getDefaultEncoding();
in= new BufferedReader(new InputStreamReader(contentStream, encoding), DEFAULT_FILE_SIZE);
- StringBuffer buffer= new StringBuffer(DEFAULT_FILE_SIZE);
+ StringBuilder buffer= new StringBuilder(DEFAULT_FILE_SIZE);
char[] readBuffer= new char[2048];
int n= in.read(readBuffer);
while (n > 0) {
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/quickdiff/LastSaveReferenceProvider.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/quickdiff/LastSaveReferenceProvider.java
index d691d7055..172ebd936 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/quickdiff/LastSaveReferenceProvider.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/quickdiff/LastSaveReferenceProvider.java
@@ -371,7 +371,7 @@ public class LastSaveReferenceProvider implements IQuickDiffReferenceProvider, I
in= new BufferedReader(new InputStreamReader(contentStream), DEFAULT_FILE_SIZE);
else
in= new BufferedReader(new InputStreamReader(contentStream, encoding), DEFAULT_FILE_SIZE);
- StringBuffer buffer= new StringBuffer(DEFAULT_FILE_SIZE);
+ StringBuilder buffer= new StringBuilder(DEFAULT_FILE_SIZE);
char[] readBuffer= new char[2048];
int n= in.read(readBuffer);
while (n > 0) {
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
index 5fdb94fb0..bb651be0b 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/internal/editors/text/SelectResourcesDialog.java
@@ -350,7 +350,7 @@ class SelectResourcesDialog extends Dialog {
private void updateSelectionCount() {
List<Object> listItems= fResourceGroup.getAllCheckedListItems();
int checkedFiles= listItems == null ? 0 : listItems.size();
- StringBuffer buffer= new StringBuffer();
+ StringBuilder buffer= new StringBuilder();
switch (checkedFiles) {
case 0:
buffer.append(TextEditorMessages.SelectResourcesDialog_noFilesSelected);

Back to the top