Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-17 06:51:33 -0400
committerLars Vogel2019-06-17 06:51:33 -0400
commit86615da70411c3c9b6906bdc348e11740ec2d0f2 (patch)
tree71689859535401e2cdd4949a5b82d12cf8391c13
parent6569f47ad4c87c209624b2171720e1f72ea89bf3 (diff)
downloadeclipse.platform.team-86615da70411c3c9b6906bdc348e11740ec2d0f2.tar.gz
eclipse.platform.team-86615da70411c3c9b6906bdc348e11740ec2d0f2.tar.xz
eclipse.platform.team-86615da70411c3c9b6906bdc348e11740ec2d0f2.zip
StringBuilder instead of StringBuffer
Change-Id: I0a1fd31b9530259947c257b8d05418e69565ab67 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorPreferencesPage.java2
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/WorkspaceCommitOperation.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorPreferencesPage.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorPreferencesPage.java
index 75d75a502..f71edd1b3 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorPreferencesPage.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoratorPreferencesPage.java
@@ -494,7 +494,7 @@ public class CVSDecoratorPreferencesPage extends PreferencePage implements IWork
@Override
public String getText(Object element) {
final CVSDecoration decoration = getDecoration(element);
- final StringBuffer buffer = new StringBuffer();
+ final StringBuilder buffer = new StringBuilder();
final String prefix = decoration.getPrefix();
if (prefix != null)
buffer.append(prefix);
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/WorkspaceCommitOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/WorkspaceCommitOperation.java
index a5d1a171e..3262e33ff 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/WorkspaceCommitOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/WorkspaceCommitOperation.java
@@ -274,7 +274,7 @@ public class WorkspaceCommitOperation extends CVSSubscriberOperation {
}
private String getProposedComment(IResource[] resourcesToCommit) {
- StringBuffer comment = new StringBuffer();
+ StringBuilder comment = new StringBuilder();
ChangeSet[] sets = CVSUIPlugin.getPlugin().getChangeSetManager().getSets();
Arrays.sort(sets, new ChangeSetComparator());
int numMatchedSets = 0;

Back to the top