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 b7ca1e4dd94c8ebe36585e35710fcab0163eb1e7 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Feb 17 10:13:19 2024 -0500 Internal refactoring - Move initialization of variables closer to use site --- src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java b/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java index 78d77fc6d..1d0902b85 100644 --- a/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java +++ b/src/main/java/org/apache/commons/compress/harmony/pack200/RunCodec.java @@ -63,11 +63,11 @@ public class RunCodec extends Codec { @Override public int[] decodeInts(final int n, final InputStream in) throws IOException, Pack200Exception { - final int[] band = new int[n]; final int[] aValues = aCodec.decodeInts(k, in); normalise(aValues, aCodec); final int[] bValues = bCodec.decodeInts(n - k, in); normalise(bValues, bCodec); + final int[] band = new int[n]; System.arraycopy(aValues, 0, band, 0, k); System.arraycopy(bValues, 0, band, k, n - k); lastBandLength = aCodec.lastBandLength + bCodec.lastBandLength;