This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-cli.git

commit d2532425eed5acf716724fc79fdfae90054e4f35
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jun 28 15:12:13 2026 +0000

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

diff --git 
a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java 
b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
index 3325886c..cf0c6ee0 100644
--- a/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
+++ b/src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java
@@ -309,7 +309,7 @@ public abstract class AbstractHelpFormatter {
      */
     public void printHelp(final String cmdLineSyntax, final String header, 
final Iterable<Option> options, final String footer, final boolean autoUsage)
             throws IOException {
-        Options optionsObject = new Options();
+        final Options optionsObject = new Options();
         options.forEach(optionsObject::addOption);
         printHelp(cmdLineSyntax, header, optionsObject, footer, autoUsage);
     }

Reply via email to