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

commit b5262ac5da683210812ff44500a312d019900271
Author: Gary Gregory <[email protected]>
AuthorDate: Sat May 11 13:59:41 2024 -0400

    Use final
---
 src/main/java/org/apache/commons/cli/CommandLine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/cli/CommandLine.java 
b/src/main/java/org/apache/commons/cli/CommandLine.java
index c5f4dfc..b4a243b 100644
--- a/src/main/java/org/apache/commons/cli/CommandLine.java
+++ b/src/main/java/org/apache/commons/cli/CommandLine.java
@@ -619,7 +619,7 @@ public class CommandLine implements Serializable {
      * @since 1.5.0
      */
     public boolean hasOption(final Option opt) {
-        boolean result = options.contains(opt);
+        final boolean result = options.contains(opt);
         if (result && opt.isDeprecated()) {
             handleDeprecated(opt);
         }

Reply via email to