Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-04-09 11:25:29 +0000
committerLars Vogel2021-05-07 08:25:24 +0000
commit343acf530ca293f624fb70cc5710dac5a5933890 (patch)
tree56cfca5f0565df24017b2575179951225c2778d7
parent05dfdc60e681e89e0c66e0f30f1557e084c4fd7d (diff)
downloadrt.equinox.p2-343acf530ca293f624fb70cc5710dac5a5933890.tar.gz
rt.equinox.p2-343acf530ca293f624fb70cc5710dac5a5933890.tar.xz
rt.equinox.p2-343acf530ca293f624fb70cc5710dac5a5933890.zip
The resulting code is much shorter. Change-Id: I1b5e6a59b1cc236c273e8005c174ef6bdf393341 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/179100 Tested-by: Equinox Bot <equinox-bot@eclipse.org>
-rw-r--r--bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/Utils.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/Utils.java b/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/Utils.java
index d9a7e9c17..d24dbc30d 100644
--- a/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/Utils.java
+++ b/bundles/org.eclipse.equinox.p2.jarprocessor/src/org/eclipse/equinox/internal/p2/jarprocessor/Utils.java
@@ -290,13 +290,8 @@ public class Utils {
}
public static String concat(String[] array) {
- StringBuilder buffer = new StringBuilder();
- for (int i = 0; i < array.length; i++) {
- if (i > 0)
- buffer.append(' ');
- buffer.append(array[i]);
- }
- return buffer.toString();
+ String buffer = String.join(String.valueOf(' '), array);
+ return buffer;
}
public static String[] toStringArray(String input, String separator) {

Back to the top