Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-10-12 15:00:11 -0400
committerLars Vogel2017-10-18 09:35:19 -0400
commit16794257a5389cf6d1548d68feb0982ede7c45e5 (patch)
tree9664f6d7b7c831dc15793486a6313bb17dc402bf /bundles
parent6b93222d66938d88a45e7e8d5971ed00447e6b8b (diff)
downloadeclipse.platform.team-16794257a5389cf6d1548d68feb0982ede7c45e5.tar.gz
eclipse.platform.team-16794257a5389cf6d1548d68feb0982ede7c45e5.tar.xz
eclipse.platform.team-16794257a5389cf6d1548d68feb0982ede7c45e5.zip
Bug 525956 - Replace StringBuffer with StringBuilder in
org.eclipse.ui.net Change-Id: Id2328d93565010c48af096ebfd5aa3a59aaf91c2 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java2
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java36
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyType.java2
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringMatcher.java2
-rw-r--r--bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringUtil.java2
5 files changed, 22 insertions, 22 deletions
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java
index 4cbde3572..d94a700ce 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/Policy.java
@@ -33,7 +33,7 @@ public class Policy {
* @param message
*/
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());
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
index 2a68e3b2c..b436c12c9 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyData.java
@@ -120,24 +120,24 @@ public class ProxyData implements IProxyData {
@Override
public String toString() {
- StringBuffer stringBuffer = new StringBuffer();
- stringBuffer.append("type: "); //$NON-NLS-1$
- stringBuffer.append(type);
- stringBuffer.append(" host: "); //$NON-NLS-1$
- stringBuffer.append(host);
- stringBuffer.append(" port: "); //$NON-NLS-1$
- stringBuffer.append(port);
- stringBuffer.append(" user: "); //$NON-NLS-1$
- stringBuffer.append(user);
- stringBuffer.append(" password: "); //$NON-NLS-1$
- stringBuffer.append(password);
- stringBuffer.append(" reqAuth: "); //$NON-NLS-1$
- stringBuffer.append(requiresAuthentication);
- stringBuffer.append(" source: "); //$NON-NLS-1$
- stringBuffer.append(source);
- stringBuffer.append(" dynamic: "); //$NON-NLS-1$
- stringBuffer.append(dynamic);
- return stringBuffer.toString();
+ StringBuilder builder = new StringBuilder();
+ builder.append("type: "); //$NON-NLS-1$
+ builder.append(type);
+ builder.append(" host: "); //$NON-NLS-1$
+ builder.append(host);
+ builder.append(" port: "); //$NON-NLS-1$
+ builder.append(port);
+ builder.append(" user: "); //$NON-NLS-1$
+ builder.append(user);
+ builder.append(" password: "); //$NON-NLS-1$
+ builder.append(password);
+ builder.append(" reqAuth: "); //$NON-NLS-1$
+ builder.append(requiresAuthentication);
+ builder.append(" source: "); //$NON-NLS-1$
+ builder.append(source);
+ builder.append(" dynamic: "); //$NON-NLS-1$
+ builder.append(dynamic);
+ return builder.toString();
}
@Override
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyType.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyType.java
index be57bbbdb..d85f93cc8 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyType.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/ProxyType.java
@@ -81,7 +81,7 @@ public class ProxyType implements INodeChangeListener, IPreferenceChangeListener
private PreferenceManager preferenceManager;
public static String convertHostsToPropertyString(String[] value) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
if (value == null)
return ""; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringMatcher.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringMatcher.java
index cb9a46577..997218641 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringMatcher.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringMatcher.java
@@ -248,7 +248,7 @@ public class StringMatcher {
Vector<String> temp = new Vector<>();
int pos = 0;
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
while (pos < fLength) {
char c = fPattern.charAt(pos++);
switch (c) {
diff --git a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringUtil.java b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringUtil.java
index 2fab70d6a..7d78b38d1 100644
--- a/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringUtil.java
+++ b/bundles/org.eclipse.core.net/src/org/eclipse/core/internal/net/StringUtil.java
@@ -84,7 +84,7 @@ public class StringUtil {
public static String replace(String source, String from, String to) {
if (from.length() == 0)
return source;
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
int current = 0;
int pos = 0;
while (pos != -1) {

Back to the top