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 ed0e3db Javadocs and comments
ed0e3db is described below
commit ed0e3dbc0c7213eadb108ddb7668572aec2624d6
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Nov 7 08:38:35 2022 -0500
Javadocs and comments
Normalize spelling to "behavior"
---
src/main/java/org/apache/commons/cli/DefaultParser.java | 4 ++--
src/test/java/org/apache/commons/cli/DefaultParserTest.java | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/cli/DefaultParser.java
b/src/main/java/org/apache/commons/cli/DefaultParser.java
index 3bbd042..8b69a76 100644
--- a/src/main/java/org/apache/commons/cli/DefaultParser.java
+++ b/src/main/java/org/apache/commons/cli/DefaultParser.java
@@ -106,7 +106,7 @@ public class DefaultParser implements CommandLineParser {
*
* If "stripping of balanced leading and trailing double quotes from
option arguments" is null,
* then quotes will be stripped from option values separated by space
from the option, but
- * kept in other cases, which is the historic behaviour.
+ * kept in other cases, which is the historic behavior.
*
* @param stripLeadingAndTrailingQuotes whether balanced leading and
trailing double quotes should be stripped from option arguments.
* @return this builder, to allow method chaining
@@ -157,7 +157,7 @@ public class DefaultParser implements CommandLineParser {
private final boolean allowPartialMatching;
/** Flag indicating if balanced leading and trailing double quotes should
be stripped from option arguments.
- * null represents the historic arbitrary behaviour */
+ * null represents the historic arbitrary behavior */
private final Boolean stripLeadingAndTrailingQuotes;
/**
diff --git a/src/test/java/org/apache/commons/cli/DefaultParserTest.java
b/src/test/java/org/apache/commons/cli/DefaultParserTest.java
index 0fd835a..c3ccf9a 100644
--- a/src/test/java/org/apache/commons/cli/DefaultParserTest.java
+++ b/src/test/java/org/apache/commons/cli/DefaultParserTest.java
@@ -97,7 +97,7 @@ public class DefaultParserTest extends ParserTestCase {
final CommandLine cl = parser.parse(options, args);
- //This is behaviour is not consistent with the other parsers, but is
required for backwards compatibility
+ //This is behavior is not consistent with the other parsers, but is
required for backwards compatibility
assertEquals("Confirm -b\"arg\" keeps quotes", "\"quoted string\"",
cl.getOptionValue("b"));
}