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 fd66015 Use final.
fd66015 is described below
commit fd66015d8e2e5bbc763c74fe4e8245cba37c01dd
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 20 22:06:14 2020 -0500
Use final.
---
src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java
b/src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java
index 8aa6b88..a2cbf76 100644
--- a/src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java
+++ b/src/test/java/org/apache/commons/cli/DisablePartialMatchingTest.java
@@ -45,7 +45,7 @@ public class DisablePartialMatchingTest
@Test
public void testRegularPartialMatching() throws Exception
{
- CommandLineParser parser = new DefaultParser();
+ final CommandLineParser parser = new DefaultParser();
final Options options = new Options();
@@ -54,7 +54,7 @@ public class DisablePartialMatchingTest
options.addOption(new Option("o", "option", true, "Turn on option with
argument."));
- CommandLine line = parser.parse(options, new String[]{"-de",
"--option=foobar"});
+ final CommandLine line = parser.parse(options, new String[]{"-de",
"--option=foobar"});
assertTrue("There should be an option debug in any case...",
line.hasOption("debug"));
assertFalse("There should not be an extract option because partial
matching only selects debug", line.hasOption("extract"));