Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2021-04-09 11:40:44 +0000
committerAlexander Kurtakov2021-04-28 21:27:19 +0000
commit8b3354c5542528933cd03edb9f0a9b995fcdb10a (patch)
treeec8e0d6efcc381d69527999301886effca75b835
parent501de1edc114d3de825cd7b770b8c96498b83012 (diff)
downloadeclipse.platform.debug-I20210428-1800.tar.gz
eclipse.platform.debug-I20210428-1800.tar.xz
eclipse.platform.debug-I20210428-1800.zip
[dogfooding] Use String.join JDT cleanup in eclipse.debugI20210428-1800
The resulting code is much shorter. Change-Id: I2980ac23520edfbfa7648055cab8999ea69b1f6e Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/179101 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
index b53f70d72..e9e6e1de1 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/launching/ArgumentParsingTests.java
@@ -76,14 +76,8 @@ public class ArgumentParsingTests extends AbstractDebugTest {
String[] splitArguments = DebugPlugin.splitArguments(commandLine);
assertEquals(expectedArgs.length, splitArguments.length);
- StringBuilder sb = new StringBuilder();
- for (int i = 0; i < splitArguments.length; i++) {
- if (i > 0) {
- sb.append(" "); //$NON-NLS-1$
- }
- sb.append(splitArguments[i]);
- }
- assertEquals(commandLine, sb.toString());
+ String sb = String.join(" ", splitArguments); //$NON-NLS-1$
+ assertEquals(commandLine, sb);
}
private static void runCommandLine(String commandLine, String[] arguments) throws IOException,

Back to the top