Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-08-15 09:37:04 -0400
committerLars Vogel2019-08-15 10:28:53 -0400
commit61ad63ee420be4b789c5ff0e70483b8995b04d53 (patch)
tree456f55adb637e4878a577bcaf43603626520994e
parent130034d9323afb98fb3c17e0ef93487e47d1d48d (diff)
downloadrt.equinox.p2-61ad63ee420be4b789c5ff0e70483b8995b04d53.tar.gz
rt.equinox.p2-61ad63ee420be4b789c5ff0e70483b8995b04d53.tar.xz
rt.equinox.p2-61ad63ee420be4b789c5ff0e70483b8995b04d53.zip
Change-Id: Ib28997e519ad672ca160776a20a65917fabb6a37 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/BlobStore.java6
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/Mapper.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java2
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java4
5 files changed, 10 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
index a86844044..9d4fd8580 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/pack200/Pack200ProcessorStep.java
@@ -31,7 +31,7 @@ import org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExec
import org.eclipse.internal.provisional.equinox.p2.jarprocessor.JarProcessorExecutor.Options;
/**
- * The Pack200Unpacker expects an input containing ".jar.pack.gz" data.
+ * The Pack200Unpacker expects an input containing ".jar.pack.gz" data.
*/
public class Pack200ProcessorStep extends AbstractBufferingStep {
public static final String PACKED_SUFFIX = ".pack.gz"; //$NON-NLS-1$
@@ -55,7 +55,7 @@ public class Pack200ProcessorStep extends AbstractBufferingStep {
detailedResult = true;
} else {
String[] locations = Utils.getPack200Commands("unpack200"); //$NON-NLS-1$
- StringBuffer locationTried = new StringBuffer(100);
+ StringBuilder locationTried = new StringBuilder(100);
for (String location : locations) {
locationTried.append(location).append(", "); //$NON-NLS-1$
}
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/BlobStore.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/BlobStore.java
index b22a503a2..f5e786315 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/BlobStore.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/BlobStore.java
@@ -58,9 +58,9 @@ public class BlobStore {
}
/*
- * @see UniversalUniqueIdentifier#appendByteString(StringBuffer, byte)
+ * @see UniversalUniqueIdentifier#appendByteString(StringBuilder, byte)
*/
- private void appendByteString(StringBuffer buffer, byte value) {
+ private void appendByteString(StringBuilder buffer, byte value) {
String hexString;
if (value < 0)
hexString = Integer.toHexString(256 + value);
@@ -77,7 +77,7 @@ public class BlobStore {
* @see UniversalUniqueIdentifier#toString()
*/
private String bytesToHexString(byte[] b) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
for (byte element : b)
appendByteString(buffer, element);
return buffer.toString();
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/Mapper.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/Mapper.java
index 5699289ec..3301b48ae 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/Mapper.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/Mapper.java
@@ -86,7 +86,7 @@ public class Mapper {
if (repoLocation.endsWith("/")) //$NON-NLS-1$
repoLocation = repoLocation.substring(0, repoLocation.length() - 1);
- StringBuffer output = new StringBuffer(pattern);
+ StringBuilder output = new StringBuilder(pattern);
int index = 0;
while (index < output.length()) {
int beginning = output.indexOf("${", index); //$NON-NLS-1$
@@ -124,7 +124,7 @@ public class Mapper {
@Override
public String toString() {
- StringBuffer result = new StringBuffer();
+ StringBuilder result = new StringBuilder();
for (int i = 0; i < filters.length; i++) {
result.append(filters[i]).append('-').append('>').append(outputStrings[i]).append('\n');
}
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
index a1a39477b..6143ba749 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java
@@ -519,7 +519,7 @@ public class SimpleArtifactRepository extends AbstractArtifactRepository impleme
}
private String bytesToHexString(byte[] bytes) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
for (byte b : bytes) {
String hexString;
if (b < 0)
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
index a59cc539c..ed4518abb 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
@@ -98,7 +98,7 @@ public class UniversalUniqueIdentifier implements java.io.Serializable {
System.arraycopy(byteValue, 0, fBits, 0, BYTES_SIZE);
}
- private void appendByteString(StringBuffer buffer, byte value) {
+ private void appendByteString(StringBuilder buffer, byte value) {
String hexString;
if (value < 0)
@@ -337,7 +337,7 @@ public class UniversalUniqueIdentifier implements java.io.Serializable {
@Override
public String toString() {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
for (int i = 0; i < fBits.length; i++)
appendByteString(buffer, fBits[i]);
return buffer.toString();

Back to the top