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


The following commit(s) were added to refs/heads/master by this push:
     new b4d9e9cd7 Byte arrays are already initialized to 0s
b4d9e9cd7 is described below

commit b4d9e9cd7f47a2481da9b648b5fca7fdfef8dcd7
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Dec 28 11:01:54 2023 -0500

    Byte arrays are already initialized to 0s
---
 .../apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java
 
b/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java
index f569f1d93..2e80aae5f 100644
--- 
a/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/compress/utils/ChecksumVerifyingInputStreamTest.java
@@ -65,7 +65,7 @@ public class ChecksumVerifyingInputStreamTest {
             final long skipReturnValue = 
checksumVerifyingInputStream.skip((byte) 1);
             assertEquals(558161692L, crc32.getValue());
             assertEquals(0, byteArrayInputStream.available());
-            assertArrayEquals(new byte[] { (byte) 0, (byte) 0, (byte) 0, 
(byte) 0 }, byteArray);
+            assertArrayEquals(new byte[4], byteArray);
             assertEquals(0L, skipReturnValue);
         }
     }

Reply via email to