Skip to content

Commit 62b510f

Browse files
committed
Use final.
1 parent 2233860 commit 62b510f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public Builder numberOfArgs(final int numberOfArgs) {
187187
* @throws IllegalArgumentException if there are any non valid Option characters in {@code opt}
188188
* @since 1.5.0
189189
*/
190-
public Builder option(String option) throws IllegalArgumentException {
190+
public Builder option(final String option) throws IllegalArgumentException {
191191
this.option = OptionValidator.validate(option);
192192
return this;
193193
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public void testPrintHelpNewlineHeader() {
339339
0,
340340
"footer" + EOL
341341
);
342-
String expected = "usage: test" + EOL +
342+
final String expected = "usage: test" + EOL +
343343
EOL +
344344
"-ab" + EOL +
345345
"footer" + EOL;

0 commit comments

Comments
 (0)