diff options
author | Lars Vogel | 2021-04-09 11:25:29 +0000 |
---|---|---|
committer | Lars Vogel | 2021-05-07 08:25:24 +0000 |
commit | 343acf530ca293f624fb70cc5710dac5a5933890 (patch) | |
tree | 56cfca5f0565df24017b2575179951225c2778d7 | |
parent | 05dfdc60e681e89e0c66e0f30f1557e084c4fd7d (diff) | |
download | rt.equinox.p2-R4_20_maintenance.tar.gz rt.equinox.p2-R4_20_maintenance.tar.xz rt.equinox.p2-R4_20_maintenance.zip |
[dogfooding] Use String.join JDT cleanup in p2S4_20_0_RC2aS4_20_0_RC2S4_20_0_RC1S4_20_0_M3R4_20I20210611-1600I20210610-1250I20210610-1220I20210610-0400I20210609-0520I20210609-0400I20210609-0220I20210603-0040I20210602-1800I20210602-0600I20210601-1800I20210601-0600I20210531-1800I20210531-0600I20210530-1800I20210529-1800I20210529-0600I20210528-1800I20210526-2310I20210526-1800I20210526-0600I20210525-1800I20210525-0730I20210524-1800I20210524-0600I20210523-1800I20210523-0600I20210522-1800I20210522-0600I20210521-1800I20210521-0150I20210521-0110I20210519-1800I20210519-0600I20210518-1800I20210518-0850I20210518-0600I20210518-0200I20210517-1800I20210517-0600I20210516-1800I20210516-0600I20210515-1800I20210515-0600I20210514-1800I20210513-1800I20210512-2250I20210512-1800I20210511-1800I20210511-0740I20210511-0330I20210511-0200I20210510-1800I20210509-1800I20210508-1800I20210507-1800R4_20_maintenance
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.java | 9 |
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) { |