Skip to content

Commit fd66015

Browse files
committed
Use final.
1 parent 6eb7d34 commit fd66015

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void testDisablePartialMatching() throws Exception
4545
@Test
4646
public void testRegularPartialMatching() throws Exception
4747
{
48-
CommandLineParser parser = new DefaultParser();
48+
final CommandLineParser parser = new DefaultParser();
4949

5050
final Options options = new Options();
5151

@@ -54,7 +54,7 @@ public void testRegularPartialMatching() throws Exception
5454
options.addOption(new Option("o", "option", true, "Turn on option with argument."));
5555

5656

57-
CommandLine line = parser.parse(options, new String[]{"-de", "--option=foobar"});
57+
final CommandLine line = parser.parse(options, new String[]{"-de", "--option=foobar"});
5858

5959
assertTrue("There should be an option debug in any case...", line.hasOption("debug"));
6060
assertFalse("There should not be an extract option because partial matching only selects debug", line.hasOption("extract"));

0 commit comments

Comments
 (0)