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
The following commit(s) were added to refs/heads/master by this push:
new caf0b99 Simplify array initialization.
caf0b99 is described below
commit caf0b99cfa99392e48e85aa103c815e4e9debfac
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Oct 6 08:17:53 2021 -0400
Simplify array initialization.
---
src/main/java/org/apache/commons/cli/Util.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/cli/Util.java
b/src/main/java/org/apache/commons/cli/Util.java
index de52265..ed47ba3 100644
--- a/src/main/java/org/apache/commons/cli/Util.java
+++ b/src/main/java/org/apache/commons/cli/Util.java
@@ -25,7 +25,7 @@ final class Util {
/**
* An empty immutable {@code String} array.
*/
- static final String[] EMPTY_STRING_ARRAY = new String[0];
+ static final String[] EMPTY_STRING_ARRAY = {};
/**
* Remove the leading and trailing quotes from {@code str}. E.g. if str is
'"one two"', then 'one two' is returned.