summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaulo Casanova <pasc@google.com>2017-04-24 18:25:57 +0100
committerPaulo Casanova <pasc@google.com>2017-04-24 18:25:57 +0100
commitcf1296bd14f843c76544de5a2e4866db38d55681 (patch)
tree8ddc0a029fd7be846456968d77ae84d5ef2a024f /src
parent751dbcbf6cbf7ab8452a1ccc9c81792a21bce56e (diff)
downloadapkzlib-cf1296bd14f843c76544de5a2e4866db38d55681.tar.gz
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
Diffstat (limited to 'src')
-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);