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 2023/01/01 14:14:33 UTC

[commons-compress] 01/06: Use curly-only array declaration

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 aff44ebc2c586ab6f44a84c24b3d910684c454a8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 1 08:58:28 2023 -0500

    Use curly-only array declaration
---
 .../apache/commons/compress/archivers/zip/AsiExtraFieldTest.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/compress/archivers/zip/AsiExtraFieldTest.java b/src/test/java/org/apache/commons/compress/archivers/zip/AsiExtraFieldTest.java
index 2ac79bb7..048e82c3 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/AsiExtraFieldTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/AsiExtraFieldTest.java
@@ -117,7 +117,7 @@ public class AsiExtraFieldTest implements UnixStat {
         assertEquals(5, a1.getUserId(), "uid plain file");
         assertEquals(6, a1.getGroupId(), "gid plain file");
 
-        final byte[] data2 = new byte[] {0x75, (byte)0x8E, 0x41, (byte)0xFD, // CRC
+        final byte[] data2 = {0x75, (byte)0x8E, 0x41, (byte)0xFD,            // CRC
                                          0123, (byte)0xA0,                   // mode
                                          4, 0, 0, 0,                         // link length
                                          5, 0, 6, 0,                         // uid, gid
@@ -132,7 +132,7 @@ public class AsiExtraFieldTest implements UnixStat {
         assertEquals(6, a2.getGroupId(), "gid link");
         assertEquals("test", a2.getLinkedFile());
 
-        final byte[] data3 = new byte[] {(byte)0x8E, 0x01, (byte)0xBF, (byte)0x0E, // CRC
+        final byte[] data3 = {(byte)0x8E, 0x01, (byte)0xBF, (byte)0x0E,            // CRC
                                          0123, (byte)0x40,                         // mode
                                          0, 0, 0, 0,                               // link
                                          5, 0, 6, 0};                              // uid, gid
@@ -145,7 +145,7 @@ public class AsiExtraFieldTest implements UnixStat {
         assertEquals(5, a3.getUserId(), "uid dir");
         assertEquals(6, a3.getGroupId(), "gid dir");
 
-        final byte[] data4 = new byte[] {0, 0, 0, 0,                           // bad CRC
+        final byte[] data4 = {0, 0, 0, 0,                                      // bad CRC
                                          0123, (byte)0x40,                     // mode
                                          0, 0, 0, 0,                           // link
                                          5, 0, 6, 0};                          // uid, gid