From cf1296bd14f843c76544de5a2e4866db38d55681 Mon Sep 17 00:00:00 2001 From: Paulo Casanova Date: Mon, 24 Apr 2017 18:25:57 +0100 Subject: Fixed array style declarations in ZFile. https://www.google.com/url?sa=D&q=http%3A%2F%2Fgo%2Fjava-style%23s4.8.3.2-array-declarations Test: Not needed Change-Id: I1788dd8acd7cdd675914b4835fcf014d2b41bfea --- src/main/java/com/android/apkzlib/zip/ZFile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/android/apkzlib/zip/ZFile.java b/src/main/java/com/android/apkzlib/zip/ZFile.java index 123e65f..7855a8c 100644 --- a/src/main/java/com/android/apkzlib/zip/ZFile.java +++ b/src/main/java/com/android/apkzlib/zip/ZFile.java @@ -687,7 +687,7 @@ public class ZFile implements Closeable { */ int zip64LocatorStart = eocdStart - ZIP64_EOCD_LOCATOR_SIZE; if (zip64LocatorStart >= 0) { - byte possibleZip64Locator[] = new byte[4]; + byte[] possibleZip64Locator = new byte[4]; directFullyRead(zip64LocatorStart, possibleZip64Locator); if (LittleEndianUtils.readUnsigned4Le(ByteBuffer.wrap(possibleZip64Locator)) == ZIP64_EOCD_LOCATOR_SIGNATURE) { @@ -788,7 +788,7 @@ public class ZFile implements Closeable { return -1; } - byte b[] = new byte[1]; + byte[] b = new byte[1]; int r = directRead(mCurr, b); if (r > 0) { mCurr++; @@ -1875,7 +1875,7 @@ public class ZFile implements Closeable { throw new IOException("Cannot read source with " + sourceSize + " bytes."); } - byte data[] = new byte[Ints.checkedCast(sourceSize)]; + byte[] data = new byte[Ints.checkedCast(sourceSize)]; int read = 0; while (read < data.length) { int r = fromInput.read(data, read, data.length - read); -- cgit v1.2.3