You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/06/28 15:13:55 UTC
(commons-cli) 04/05: Use final.
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 2442fa449a0bc32e0344446165a8e270ebf0073a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jun 28 15:13:11 2026 +0000
Use final.
---
src/main/java/org/apache/commons/cli/help/HelpFormatter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/cli/help/HelpFormatter.java b/src/main/java/org/apache/commons/cli/help/HelpFormatter.java
index 890b7526..781c695f 100644
--- a/src/main/java/org/apache/commons/cli/help/HelpFormatter.java
+++ b/src/main/java/org/apache/commons/cli/help/HelpFormatter.java
@@ -198,7 +198,7 @@ public class HelpFormatter extends AbstractHelpFormatter {
rows.add(row);
});
// return the TableDefinition with the proper column headers.
- List<String> headers = new ArrayList<>(3);
+ final List<String> headers = new ArrayList<>(3);
headers.add(LABEL_OPTIONS);
if (showSince) {
headers.add(LABEL_SINCE);