Skip to content

Commit 91d0185

Browse files
committed
Merge some string literals
1 parent c52d892 commit 91d0185

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/apache/commons/cli/OptionValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static String validate(final String option) throws IllegalArgumentException {
129129
for (int i = 1; i < chars.length; i++) {
130130
final char ch = chars[i];
131131
if (!isValidChar(ch)) {
132-
throw new IllegalArgumentException(String.format("The option '%s' contains an illegal " + "character : '%s'.", option, ch));
132+
throw new IllegalArgumentException(String.format("The option '%s' contains an illegal character : '%s'.", option, ch));
133133
}
134134
}
135135
}

src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ void testToSyntaxOptionIterableTest() {
354354
void testToSyntaxOptionOptionsTest() {
355355
final HelpFormatter underTest = HelpFormatter.builder().get();
356356
Options options = getTestGroups();
357-
assertEquals("[-1 <arg> | --aon <arg> | --uno <arg>] [--dos <arg> | --dó <arg> | --two <arg>] " + "[--three <arg> | --tres <arg> | --trí <arg>]",
357+
assertEquals("[-1 <arg> | --aon <arg> | --uno <arg>] [--dos <arg> | --dó <arg> | --two <arg>] [--three <arg> | --tres <arg> | --trí <arg>]",
358358
underTest.toSyntaxOptions(options), "getTestGroup options failed");
359359

360360
// @formatter:off

0 commit comments

Comments
 (0)