This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new 91d0185c Merge some string literals
91d0185c is described below

commit 91d0185c017e39cd3696bfffd56d5b36de22dc07
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sun Jul 20 16:46:56 2025 -0400

    Merge some string literals
---
 src/main/java/org/apache/commons/cli/OptionValidator.java        | 2 +-
 src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/commons/cli/OptionValidator.java 
b/src/main/java/org/apache/commons/cli/OptionValidator.java
index 987f2d33..e170ccb1 100644
--- a/src/main/java/org/apache/commons/cli/OptionValidator.java
+++ b/src/main/java/org/apache/commons/cli/OptionValidator.java
@@ -129,7 +129,7 @@ final class OptionValidator {
             for (int i = 1; i < chars.length; i++) {
                 final char ch = chars[i];
                 if (!isValidChar(ch)) {
-                    throw new IllegalArgumentException(String.format("The 
option '%s' contains an illegal " + "character : '%s'.", option, ch));
+                    throw new IllegalArgumentException(String.format("The 
option '%s' contains an illegal character : '%s'.", option, ch));
                 }
             }
         }
diff --git a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java 
b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
index f808b477..45f1222e 100644
--- a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
+++ b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
@@ -354,7 +354,7 @@ class HelpFormatterTest {
     void testToSyntaxOptionOptionsTest() {
         final HelpFormatter underTest = HelpFormatter.builder().get();
         Options options = getTestGroups();
-        assertEquals("[-1 <arg> | --aon <arg> | --uno <arg>] [--dos <arg> | 
--dó <arg> | --two <arg>] " + "[--three <arg> | --tres <arg> | --trí <arg>]",
+        assertEquals("[-1 <arg> | --aon <arg> | --uno <arg>] [--dos <arg> | 
--dó <arg> | --two <arg>] [--three <arg> | --tres <arg> | --trí <arg>]",
                 underTest.toSyntaxOptions(options), "getTestGroup options 
failed");
 
         // @formatter:off

Reply via email to