Skip to content

Commit caf0b99

Browse files
committed
Simplify array initialization.
1 parent 9830b69 commit caf0b99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/org/apache/commons/cli

src/main/java/org/apache/commons/cli/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class Util {
2525
/**
2626
* An empty immutable {@code String} array.
2727
*/
28-
static final String[] EMPTY_STRING_ARRAY = new String[0];
28+
static final String[] EMPTY_STRING_ARRAY = {};
2929

3030
/**
3131
* Remove the leading and trailing quotes from {@code str}. E.g. if str is '"one two"', then 'one two' is returned.

0 commit comments

Comments
 (0)