Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-11-17 06:24:26 -0500
committerLars Vogel2017-11-17 14:54:20 -0500
commit8d071d9e23e4ee54695db48b33321439ad1a700b (patch)
tree8ae62d98691ff1d86ac3371a288c8fa1bd725e8b
parentfdab9d0d433efb405218d2b470c41b5521765ea5 (diff)
downloadeclipse.platform.team-I20171126-2000.tar.gz
eclipse.platform.team-I20171126-2000.tar.xz
eclipse.platform.team-I20171126-2000.zip
org.eclipse.compare.examples and org.eclipse.compare.examples.xml Change-Id: Ic45fa07ee03182810dd1d903e6e82718c0d10577 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/AttributesImpl.java2
-rw-r--r--examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLPlugin.java4
-rw-r--r--examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLStructureCreator.java6
-rw-r--r--examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java2
4 files changed, 7 insertions, 7 deletions
diff --git a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/AttributesImpl.java b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/AttributesImpl.java
index a1cbc8e3e..a808e19b6 100644
--- a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/AttributesImpl.java
+++ b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/AttributesImpl.java
@@ -280,7 +280,7 @@ public class AttributesImpl implements Attributes {
/* Returns a string representation of this object. */
@Override
public String toString() {
- StringBuffer str= new StringBuffer();
+ StringBuilder str= new StringBuilder();
str.append('[');
str.append("len="); //$NON-NLS-1$
diff --git a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLPlugin.java b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLPlugin.java
index f941cfadb..88c51549a 100644
--- a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLPlugin.java
+++ b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLPlugin.java
@@ -207,7 +207,7 @@ public final class XMLPlugin extends AbstractUIPlugin {
CompareUI.addStructureViewerAlias(DEFAULT_PREFIX, extension);
}
}
- StringBuffer IdMapPrefValue = new StringBuffer();
+ StringBuilder IdMapPrefValue = new StringBuilder();
Set idmapKeys = fIdMaps.keySet();
for (Iterator iter_idmap = idmapKeys.iterator(); iter_idmap.hasNext(); ) {
String IdMapName = (String) iter_idmap.next();
@@ -233,7 +233,7 @@ public final class XMLPlugin extends AbstractUIPlugin {
//stores OrderedElements
if (OrderedElements != null) {
fOrderedElements= OrderedElements;
- StringBuffer OrderedPrefValue= new StringBuffer();
+ StringBuilder OrderedPrefValue= new StringBuilder();
Set orderedKeys= fOrderedElements.keySet();
for (Iterator iter_ordered= orderedKeys.iterator(); iter_ordered.hasNext();) {
String IdMapName= (String) iter_ordered.next();
diff --git a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLStructureCreator.java b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLStructureCreator.java
index d02e99194..bf86f6eb8 100644
--- a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLStructureCreator.java
+++ b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLStructureCreator.java
@@ -487,7 +487,7 @@ public class XMLStructureCreator implements IStructureCreator {
/* Returns a string of the location. */
private String getLocationString(SAXParseException ex) {
- StringBuffer str= new StringBuffer();
+ StringBuilder str= new StringBuilder();
String systemId= ex.getSystemId();
if (systemId != null) {
@@ -702,7 +702,7 @@ public class XMLStructureCreator implements IStructureCreator {
return null;
BufferedReader reader= null;
try {
- StringBuffer buffer= new StringBuffer();
+ StringBuilder buffer= new StringBuilder();
char[] part= new char[2048];
int read= 0;
reader= new BufferedReader(new InputStreamReader(is, encoding));
@@ -779,7 +779,7 @@ public class XMLStructureCreator implements IStructureCreator {
protected String removeWhiteSpace(String str) {
str= trimWhiteSpace(str);
- StringBuffer retStr= new StringBuffer();
+ StringBuilder retStr= new StringBuilder();
int start= 0, end= 0;
outer_while: while (true) {
while (end < str.length() && !isWhiteSpace(str.charAt(end))) {
diff --git a/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java b/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
index 5522d8354..6347dbea3 100644
--- a/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
+++ b/examples/org.eclipse.compare.examples/src/org/eclipse/compare/examples/structurecreator/Util.java
@@ -44,7 +44,7 @@ public class Util {
return null;
BufferedReader reader= null;
try {
- StringBuffer buffer= new StringBuffer();
+ StringBuilder buffer= new StringBuilder();
char[] part= new char[2048];
int read= 0;
reader= new BufferedReader(new InputStreamReader(is, encoding));

Back to the top