summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Casanova <pasc@google.com>2018-01-25 23:03:48 +0000
committerandroid-build-merger <android-build-merger@google.com>2018-01-25 23:03:48 +0000
commit6ae05391ad058f4fbdae24c8904d89a41ed980d7 (patch)
tree8ddc0a029fd7be846456968d77ae84d5ef2a024f
parentb34af68b62cc7a66624152b5e3a03526cc4d3886 (diff)
parent4ece75bcbd05f346b69ce89f876b352e5470592d (diff)
downloadapkzlib-6ae05391ad058f4fbdae24c8904d89a41ed980d7.tar.gz
Fixed array style declarations in ZFile. am: cf1296bd14
am: 4ece75bcbd Change-Id: I4dc472326e61b55dab15b61efb9f0628055b2260
-rw-r--r--src/main/java/com/android/apkzlib/zip/ZFile.java6
1 files 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);