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 046d40a22452067903f24ef96afd056e6a7a7ce0
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 27 11:37:24 2026 +0000

    Use final
---
 src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java 
b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
index 24d8197b..04041f64 100644
--- a/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
+++ b/src/test/java/org/apache/commons/cli/help/HelpFormatterTest.java
@@ -164,11 +164,11 @@ class HelpFormatterTest {
     void testPrintHelpWithDefaults() throws IOException {
         final StringBuilder sb = new StringBuilder();
         final TextHelpAppendable serializer = new TextHelpAppendable(sb);
-        HelpFormatter formatter = 
HelpFormatter.builder().setHelpAppendable(serializer).get();
+        final HelpFormatter formatter = 
HelpFormatter.builder().setHelpAppendable(serializer).get();
 
         final Options options = new 
Options().addOption(Option.builder("a").since("1853").hasArg().desc("aaaa aaaa 
aaaa aaaa aaaa").get());
 
-        List<String> expected = new ArrayList<>();
+        final List<String> expected = new ArrayList<>();
         expected.add(" usage:  commandSyntax");
         expected.add("");
         expected.add(" Options      Since           Description       ");
@@ -176,7 +176,7 @@ class HelpFormatterTest {
         expected.add("");
 
         formatter.printHelp("commandSyntax", options);
-        List<String> actual = IOUtils.readLines(new 
StringReader(sb.toString()));
+        final List<String> actual = IOUtils.readLines(new 
StringReader(sb.toString()));
         assertEquals(expected, actual);
     }
 

Reply via email to