Use StringBuilder in p2.operatios
No need to use synch version with StringBuffer
Change-Id: I1d7cfe51ead6ec1d0e4b7bd85dd7955e7b0e8c57
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/ResolutionResult.java b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/ResolutionResult.java
index 73073d1..8021aa9 100644
--- a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/ResolutionResult.java
+++ b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/ResolutionResult.java
@@ -21,7 +21,7 @@
/**
* ResolutionResult describes problems in a provisioning plan in a structured
* way that can be presented to a user.
- *
+ *
* @since 2.0
*/
public class ResolutionResult {
@@ -71,7 +71,7 @@
public String getSummaryReport() {
if (summaryStatus != null) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
appendDetailText(summaryStatus, buffer, -1, false);
return buffer.toString();
}
@@ -80,7 +80,7 @@
// Answers null if there is nothing to say about the ius
public String getDetailedReport(IInstallableUnit[] ius) {
- StringBuffer buffer = new StringBuffer();
+ StringBuilder buffer = new StringBuilder();
for (IInstallableUnit iu : ius) {
MultiStatus iuStatus = iuToStatusMap.get(iu);
if (iuStatus != null)
@@ -92,7 +92,7 @@
return report;
}
- void appendDetailText(IStatus status, StringBuffer buffer, int indent, boolean includeTopLevelMessage) {
+ void appendDetailText(IStatus status, StringBuilder buffer, int indent, boolean includeTopLevelMessage) {
if (includeTopLevelMessage) {
for (int i = 0; i < indent; i++)
buffer.append(NESTING_INDENT);