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 bef0cfd48f3620bb69865d9eb98666f633d9d400
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jun 10 19:03:49 2025 -0400

    Use compact array initialization
---
 src/test/java/org/apache/commons/cli/CommandLineTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/cli/CommandLineTest.java 
b/src/test/java/org/apache/commons/cli/CommandLineTest.java
index e79bb258..30125df7 100644
--- a/src/test/java/org/apache/commons/cli/CommandLineTest.java
+++ b/src/test/java/org/apache/commons/cli/CommandLineTest.java
@@ -173,7 +173,7 @@ class CommandLineTest {
         final Option optT = 
Option.builder().option("T").longOpt("tee").deprecated().type(Integer.class).optionalArg(true).hasArgs().build();
         final Option optU = 
Option.builder("U").longOpt("you").type(Integer.class).optionalArg(true).hasArgs().build();
         final OptionGroup optionGroup = new 
OptionGroup().addOption(optT).addOption(optU);
-        final Integer[] expected = new Integer[]{1, 2};
+        final Integer[] expected = {1, 2};
 
         // T set
         lst.add(Arguments.of(new String[] {"-T"}, optT, optionGroup, true, 
null, true, null, optT));

Reply via email to