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 2022/12/08 16:15:51 UTC
[commons-compress] 20/38: Use simple array initialization
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-compress.git
commit 12c311a89502bb2b0e80ae73e366a161292d42d3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 8 11:07:56 2022 -0500
Use simple array initialization
---
src/main/java/org/apache/commons/compress/archivers/sevenz/Folder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/compress/archivers/sevenz/Folder.java b/src/main/java/org/apache/commons/compress/archivers/sevenz/Folder.java
index 26421385..cfa7e4b3 100644
--- a/src/main/java/org/apache/commons/compress/archivers/sevenz/Folder.java
+++ b/src/main/java/org/apache/commons/compress/archivers/sevenz/Folder.java
@@ -46,7 +46,7 @@ class Folder {
/// output streams and the number of non-empty files in this
/// folder.
int numUnpackSubStreams;
- static final Folder[] EMPTY_FOLDER_ARRAY = new Folder[0];
+ static final Folder[] EMPTY_FOLDER_ARRAY = {};
/**
* Sorts Coders using bind pairs.