Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-07-20 09:16:10 +0000
committerLars Vogel2017-07-20 09:16:10 +0000
commit221bec199e846dfd584e9ab8d3a75f2a428faea9 (patch)
tree5dad797445177d139e6ccd7c2b02197b47cd571a
parent4b5f9de3e07d7283dbd1eb6efbb084f0b79ab571 (diff)
downloadeclipse.platform.resources-221bec199e846dfd584e9ab8d3a75f2a428faea9.tar.gz
eclipse.platform.resources-221bec199e846dfd584e9ab8d3a75f2a428faea9.tar.xz
eclipse.platform.resources-221bec199e846dfd584e9ab8d3a75f2a428faea9.zip
Bug 519928 - Replace StringBuffer with StringBuilder in
org.eclipse.core.filesystem Change-Id: I4003b8077ad2b68492c5620da4b0b928a6006e3b Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.core.filesystem/src/org/eclipse/core/filesystem/URIUtil.java2
-rw-r--r--bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/filesystem/URIUtil.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/filesystem/URIUtil.java
index 2f51831be..7388ca831 100644
--- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/filesystem/URIUtil.java
+++ b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/filesystem/URIUtil.java
@@ -130,7 +130,7 @@ public class URIUtil {
if (File.separatorChar != '/')
pathString = pathString.replace(File.separatorChar, '/');
final int length = pathString.length();
- StringBuffer pathBuf = new StringBuffer(length + 1);
+ StringBuilder pathBuf = new StringBuilder(length + 1);
//mark if path is relative
if (length > 0 && (pathString.charAt(0) != '/') && forceAbsolute) {
pathBuf.append('/');
diff --git a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java
index 7a591ac86..4d78a043e 100644
--- a/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java
+++ b/bundles/org.eclipse.core.filesystem/src/org/eclipse/core/internal/filesystem/Policy.java
@@ -27,7 +27,7 @@ public class Policy {
* Pre-pend the message with the current date and the name of the current thread.
*/
public static void debug(String message) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
buffer.append(new Date(System.currentTimeMillis()));
buffer.append(" - ["); //$NON-NLS-1$
buffer.append(Thread.currentThread().getName());

Back to the top