Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-09-14 20:15:13 +0000
committerLars Vogel2019-10-02 07:02:35 +0000
commit1e75ec162f392dcfe6eb9e3cfad6dfef6ea3d1c0 (patch)
tree7797f4b792fecc271af0611301bbdf4a95257bd9 /bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal
parent247d7f936fe1e34e4e862f3d75e5c8a20e328b01 (diff)
downloadrt.equinox.p2-1e75ec162f392dcfe6eb9e3cfad6dfef6ea3d1c0.tar.gz
rt.equinox.p2-1e75ec162f392dcfe6eb9e3cfad6dfef6ea3d1c0.tar.xz
rt.equinox.p2-1e75ec162f392dcfe6eb9e3cfad6dfef6ea3d1c0.zip
Use StringBuilder instead of StringBuffer where possible.
Change-Id: Ie756b6925b7dfc3471659764990c85d0e17eb1df Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal')
-rw-r--r--bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/RequestFlexer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/RequestFlexer.java b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/RequestFlexer.java
index 631c6a4b6..6145cdb81 100644
--- a/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/RequestFlexer.java
+++ b/bundles/org.eclipse.equinox.p2.operations/src/org/eclipse/equinox/internal/p2/operations/RequestFlexer.java
@@ -330,7 +330,7 @@ public class RequestFlexer {
//Create an OR expression that is matching all the entries from the given collection
private IRequirement createORRequirement(Collection<IInstallableUnit> findUpdates, boolean optional) {
- StringBuffer expression = new StringBuffer();
+ StringBuilder expression = new StringBuilder();
Object[] expressionParameters = new Object[findUpdates.size() * 2];
int count = 0;
for (IInstallableUnit iu : findUpdates) {

Back to the top