Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-10-12 15:00:53 -0400
committerLars Vogel2017-10-18 09:47:07 -0400
commite9efcb484933af8e5b6167b5d749a20e1c20c8ef (patch)
treea22ba9250e03c63223d68f3a8cf3f1be736cc830 /bundles
parent3222f0cd2c3b1e65f76a2f3072f1b7013dfa7fe3 (diff)
downloadeclipse.platform.team-e9efcb484933af8e5b6167b5d749a20e1c20c8ef.tar.gz
eclipse.platform.team-e9efcb484933af8e5b6167b5d749a20e1c20c8ef.tar.xz
eclipse.platform.team-e9efcb484933af8e5b6167b5d749a20e1c20c8ef.zip
Bug 525956 - Replace StringBuffer with StringBuilder in
org.eclipse.core.net and org.eclipse.ui.net Change-Id: If6d40987708d952287de29f08c1c041140ae5ccf Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java2
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/ProxyEntriesLabelProvider.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
index b9b5ea7e5..efa726d95 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
@@ -220,7 +220,7 @@ public class NonProxyHostsComposite extends Composite {
}
String getStringList(Iterator iterator) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
if (iterator.hasNext()) {
ProxyBypassData data = (ProxyBypassData) iterator.next();
buffer.append(data.getHost());
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/ProxyEntriesLabelProvider.java b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/ProxyEntriesLabelProvider.java
index 277229fa1..1a1414ce3 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/ProxyEntriesLabelProvider.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/ProxyEntriesLabelProvider.java
@@ -69,7 +69,7 @@ public class ProxyEntriesLabelProvider extends BaseLabelProvider implements
if (data.getPassword() == null) {
return null;
}
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (int i = 0; i < data.getPassword().length(); i++) {
sb.append('*');
}

Back to the top