diff options
author | Lars Vogel | 2019-08-14 09:41:27 +0000 |
---|---|---|
committer | Lars Vogel | 2019-08-14 09:41:27 +0000 |
commit | c3223db78967165641e14f88088ad58823a1f141 (patch) | |
tree | d57ef4f117dbc97fd09cf294edc6326afb9c7a32 | |
parent | cf55f82da620d4456aa894396d4bf52e9383f62f (diff) | |
download | rt.equinox.bundles-c3223db78967165641e14f88088ad58823a1f141.tar.gz rt.equinox.bundles-c3223db78967165641e14f88088ad58823a1f141.tar.xz rt.equinox.bundles-c3223db78967165641e14f88088ad58823a1f141.zip |
Use StringBuilder in Path
Change-Id: I09c7fac6d9ca1930c9f2642459e1d1c194b96ddb
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java index 5ff5fe7b1..dee69a3a0 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/Path.java @@ -558,7 +558,7 @@ public class Path implements IPath, Cloneable { * Returns the platform-neutral encoding of the given segment onto * the given string buffer. This escapes literal colon characters with double colons. */ - private void encodeSegment(String string, StringBuffer buf) { + private void encodeSegment(String string, StringBuilder buf) { int len = string.length(); for (int i = 0; i < len; i++) { char c = string.charAt(i); @@ -1143,7 +1143,7 @@ public class Path implements IPath, Cloneable { int resultSize = computeLength(); if (resultSize <= 0) return EMPTY_STRING; - StringBuffer result = new StringBuffer(resultSize); + StringBuilder result = new StringBuilder(resultSize); if (device != null) result.append(device); if ((flags & HAS_LEADING) != 0) |