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 62b510f Use final. 62b510f is described below commit 62b510f93283fee7225b56c95b6d017b8546367f Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Oct 23 08:53:21 2021 -0400 Use final. --- src/main/java/org/apache/commons/cli/Option.java | 2 +- src/test/java/org/apache/commons/cli/HelpFormatterTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/cli/Option.java b/src/main/java/org/apache/commons/cli/Option.java index 7ca9518..a1c2e4e 100644 --- a/src/main/java/org/apache/commons/cli/Option.java +++ b/src/main/java/org/apache/commons/cli/Option.java @@ -187,7 +187,7 @@ public class Option implements Cloneable, Serializable { * @throws IllegalArgumentException if there are any non valid Option characters in {@code opt} * @since 1.5.0 */ - public Builder option(String option) throws IllegalArgumentException { + public Builder option(final String option) throws IllegalArgumentException { this.option = OptionValidator.validate(option); return this; } diff --git a/src/test/java/org/apache/commons/cli/HelpFormatterTest.java b/src/test/java/org/apache/commons/cli/HelpFormatterTest.java index d836f99..abeb432 100644 --- a/src/test/java/org/apache/commons/cli/HelpFormatterTest.java +++ b/src/test/java/org/apache/commons/cli/HelpFormatterTest.java @@ -339,7 +339,7 @@ public class HelpFormatterTest { 0, "footer" + EOL ); - String expected = "usage: test" + EOL + + final String expected = "usage: test" + EOL + EOL + "-ab" + EOL + "footer" + EOL;