diff options
author | Lars Vogel | 2020-11-03 10:27:41 +0000 |
---|---|---|
committer | Lars Vogel | 2020-11-06 12:46:12 +0000 |
commit | 534a3f854ba102deeb35231617dcff4e84dcd166 (patch) | |
tree | c91e3aa86716a628f7a845db93246fc06df2fb87 | |
parent | 04d61343b075b61a2a779f607aa0f36c81aa7d8a (diff) | |
download | rt.equinox.p2-534a3f854ba102deeb35231617dcff4e84dcd166.tar.gz rt.equinox.p2-534a3f854ba102deeb35231617dcff4e84dcd166.tar.xz rt.equinox.p2-534a3f854ba102deeb35231617dcff4e84dcd166.zip |
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>
-rw-r--r-- | bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/ResolutionResult.java | 8 |
1 files changed, 4 insertions, 4 deletions
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 73073d1e0..8021aa929 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 @@ import org.eclipse.equinox.p2.metadata.IInstallableUnit; /** * 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 class ResolutionResult { 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 @@ public class ResolutionResult { // 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 @@ public class ResolutionResult { 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); |