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 cb25153  Use final
cb25153 is described below

commit cb251532d5a56a001d2d4fda5bb9eee0e80cf46f
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Fri May 17 20:07:13 2024 -0400

    Use final
---
 src/test/java/org/apache/commons/cli/CommandLineTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/cli/CommandLineTest.java 
b/src/test/java/org/apache/commons/cli/CommandLineTest.java
index 9ffefbb..f0fe20f 100644
--- a/src/test/java/org/apache/commons/cli/CommandLineTest.java
+++ b/src/test/java/org/apache/commons/cli/CommandLineTest.java
@@ -91,7 +91,7 @@ public class CommandLineTest {
         final Option opt = 
Option.builder().option("T").longOpt("tee").deprecated().build();
         builder.addOption(opt);
         // verify one and only one call
-        List<Option> handler = new ArrayList<>();
+        final List<Option> handler = new ArrayList<>();
         final CommandLine cmd = 
builder.setDeprecatedHandler(handler::add).build();
         // test short option arg
         cmd.getOptionValue(opt.getOpt());
@@ -123,7 +123,7 @@ public class CommandLineTest {
         final Option opt = 
Option.builder().option("T").longOpt("tee").deprecated().build();
         builder.addOption(opt);
         // verify one and only one call
-        List<Option> handler = new ArrayList<>();
+        final List<Option> handler = new ArrayList<>();
         final CommandLine cmd = 
builder.setDeprecatedHandler(handler::add).build();
 
         // test short option arg

Reply via email to