Skip to content

Commit cb25153

Browse files
committed
Use final
1 parent fbfc8c9 commit cb25153

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void testDeprecatedOption() {
9191
final Option opt = Option.builder().option("T").longOpt("tee").deprecated().build();
9292
builder.addOption(opt);
9393
// verify one and only one call
94-
List<Option> handler = new ArrayList<>();
94+
final List<Option> handler = new ArrayList<>();
9595
final CommandLine cmd = builder.setDeprecatedHandler(handler::add).build();
9696
// test short option arg
9797
cmd.getOptionValue(opt.getOpt());
@@ -123,7 +123,7 @@ public void testDeprecatedParsedOptionValue() throws ParseException {
123123
final Option opt = Option.builder().option("T").longOpt("tee").deprecated().build();
124124
builder.addOption(opt);
125125
// verify one and only one call
126-
List<Option> handler = new ArrayList<>();
126+
final List<Option> handler = new ArrayList<>();
127127
final CommandLine cmd = builder.setDeprecatedHandler(handler::add).build();
128128

129129
// test short option arg

0 commit comments

Comments
 (0)