Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2017-10-12 14:59:06 -0400
committerLars Vogel2017-10-12 14:59:06 -0400
commit5eb28b10014744e513f74501c68171b31a525a3a (patch)
treeb21ebdbd8c03908f72775a6ad83283715bdbf984 /bundles
parentefdae76c60bd8a92d001e8c32f79f0d438f5adcc (diff)
downloadeclipse.platform.team-5eb28b10014744e513f74501c68171b31a525a3a.tar.gz
eclipse.platform.team-5eb28b10014744e513f74501c68171b31a525a3a.tar.xz
eclipse.platform.team-5eb28b10014744e513f74501c68171b31a525a3a.zip
Change-Id: I47231b6cfc00541235991a0306187da5efd4244a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java4
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java4
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/UserStringMappings.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSet.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSetManager.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/DiffTreeStatistics.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncByteConverter.java2
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncInfoStatistics.java2
9 files changed, 11 insertions, 11 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java
index 675a72928..29fcd131a 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/Team.java
@@ -260,7 +260,7 @@ public final class Team {
globalIgnore.put(patterns[i], Boolean.valueOf(enabled[i]));
}
// Now set into preferences
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
Iterator e = globalIgnore.entrySet().iterator();
while (e.hasNext()) {
Map.Entry entry = (Entry) e.next();
@@ -346,7 +346,7 @@ public final class Team {
private static String collectContributingExtentionsToDisplay(
String patternToFind, IExtension[] extensions) {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
boolean isFirst = true;
for (int i = 0; i < extensions.length; i++) {
IConfigurationElement[] configElements = extensions[i]
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
index bfe55bb88..f21642fbd 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/BackgroundEventHandler.java
@@ -103,7 +103,7 @@ public abstract class BackgroundEventHandler {
}
@Override
public String toString() {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
buffer.append("Background Event: "); //$NON-NLS-1$
buffer.append(getTypeString());
return buffer.toString();
@@ -136,7 +136,7 @@ public abstract class BackgroundEventHandler {
}
@Override
public String toString() {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
buffer.append("resource: "); //$NON-NLS-1$
buffer.append(resource.getFullPath());
buffer.append(" type: "); //$NON-NLS-1$
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java
index ad683e742..5aa255d6a 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/StringMatcher.java
@@ -260,7 +260,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.team.core/src/org/eclipse/team/internal/core/UserStringMappings.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/UserStringMappings.java
index 61ed6013d..a56cc93b0 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/UserStringMappings.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/UserStringMappings.java
@@ -81,7 +81,7 @@ public class UserStringMappings implements Preferences.IPropertyChangeListener {
public void save() {
// Now set into preferences
- final StringBuffer buffer = new StringBuffer();
+ final StringBuilder buffer = new StringBuilder();
final Iterator e = fMap.keySet().iterator();
while (e.hasNext()) {
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSet.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSet.java
index 58bbfc258..beb0b7dee 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSet.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSet.java
@@ -127,7 +127,7 @@ public class ActiveChangeSet extends DiffChangeSet {
prefs.put(CTX_COMMENT, comment);
}
if (!isEmpty()) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
IResource[] resources = getResources();
for (int i = 0; i < resources.length; i++) {
IResource resource = resources[i];
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSetManager.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSetManager.java
index deb6c8139..b288bef4e 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSetManager.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/ActiveChangeSetManager.java
@@ -365,7 +365,7 @@ public abstract class ActiveChangeSetManager extends ChangeSetManager implements
* @return Escaped output string
*/
private static String escapePrefName(String string) {
- StringBuffer out = new StringBuffer();
+ StringBuilder out = new StringBuilder();
for (int i = 0; i < string.length(); i++) {
char c = string.charAt(i);
switch (c) {
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/DiffTreeStatistics.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/DiffTreeStatistics.java
index 6ff14004c..e8b745335 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/DiffTreeStatistics.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/DiffTreeStatistics.java
@@ -99,7 +99,7 @@ public class DiffTreeStatistics {
*/
@Override
public String toString() {
- StringBuffer out = new StringBuffer();
+ StringBuilder out = new StringBuilder();
Iterator it = stats.keySet().iterator();
while (it.hasNext()) {
Integer kind = (Integer) it.next();
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncByteConverter.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncByteConverter.java
index f48d06aaa..59d63bc24 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncByteConverter.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncByteConverter.java
@@ -119,7 +119,7 @@ public class SyncByteConverter {
}
public static byte[] toBytes(String[] slots) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
for (int i = 0; i < slots.length; i++) {
String string = slots[i];
buffer.append(string);
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncInfoStatistics.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncInfoStatistics.java
index c2cd069c8..5366f7ac5 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncInfoStatistics.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/subscribers/SyncInfoStatistics.java
@@ -97,7 +97,7 @@ public class SyncInfoStatistics {
*/
@Override
public String toString() {
- StringBuffer out = new StringBuffer();
+ StringBuilder out = new StringBuilder();
Iterator it = stats.keySet().iterator();
while (it.hasNext()) {
Integer kind = (Integer) it.next();

Back to the top