Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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