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-compress.git

commit 2d58dc3ffd0647bb40fbddbbcbd411b8e40b22f8
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Jul 10 09:37:50 2026 -0400

    Internal refactoring array constant.
---
 .../java/org/apache/commons/compress/harmony/unpack200/BandSet.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java 
b/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
index 1b7436948..93c218e14 100644
--- a/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
+++ b/src/main/java/org/apache/commons/compress/harmony/unpack200/BandSet.java
@@ -47,6 +47,8 @@
  */
 public abstract class BandSet {
 
+    private static final String[][] EMPTY_STRINGS = new String[][] { {} };
+
     static int sumPositive(final int[] counts) throws Pack200Exception {
         int totalCount = 0;
         for (final int count : counts) {
@@ -630,7 +632,7 @@ public String[][] parseReferences(final String name, final 
InputStream in, final
             throws IOException, Pack200Exception {
         final int count = counts.length;
         if (count == 0) {
-            return new String[][] { {} };
+            return EMPTY_STRINGS;
         }
         final int sum = sumPositive(counts);
         // TODO Merge the decode and parsing of a multiple structure into one

Reply via email to