File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/cli Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments