From 0cfd7e44f6065d334b7b3e45f90faf9dd69c61cb Mon Sep 17 00:00:00 2001 From: cpovirk Date: Fri, 27 Dec 2024 11:06:19 -0800 Subject: [PATCH] Fixed `MixedArrayDimensions` warnings. RELNOTES=n/a PiperOrigin-RevId: 710098336 --- .../guava/src/com/google/common/io/ByteArrayDataInput.java | 4 ++-- .../guava/src/com/google/common/io/ByteArrayDataOutput.java | 4 ++-- android/guava/src/com/google/common/io/ByteStreams.java | 4 ++-- guava/src/com/google/common/io/ByteArrayDataInput.java | 4 ++-- guava/src/com/google/common/io/ByteArrayDataOutput.java | 4 ++-- guava/src/com/google/common/io/ByteStreams.java | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/android/guava/src/com/google/common/io/ByteArrayDataInput.java b/android/guava/src/com/google/common/io/ByteArrayDataInput.java index e481663c1e1c..375f07cd67f4 100644 --- a/android/guava/src/com/google/common/io/ByteArrayDataInput.java +++ b/android/guava/src/com/google/common/io/ByteArrayDataInput.java @@ -37,10 +37,10 @@ @GwtIncompatible public interface ByteArrayDataInput extends DataInput { @Override - void readFully(byte b[]); + void readFully(byte[] b); @Override - void readFully(byte b[], int off, int len); + void readFully(byte[] b, int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored // use ByteStreams.skipFully or one of the read methods instead diff --git a/android/guava/src/com/google/common/io/ByteArrayDataOutput.java b/android/guava/src/com/google/common/io/ByteArrayDataOutput.java index 8366a5790a8c..32c9e2fca9bc 100644 --- a/android/guava/src/com/google/common/io/ByteArrayDataOutput.java +++ b/android/guava/src/com/google/common/io/ByteArrayDataOutput.java @@ -33,10 +33,10 @@ public interface ByteArrayDataOutput extends DataOutput { void write(int b); @Override - void write(byte b[]); + void write(byte[] b); @Override - void write(byte b[], int off, int len); + void write(byte[] b, int off, int len); @Override void writeBoolean(boolean v); diff --git a/android/guava/src/com/google/common/io/ByteStreams.java b/android/guava/src/com/google/common/io/ByteStreams.java index 4f51773fb26d..17e8b9c92638 100644 --- a/android/guava/src/com/google/common/io/ByteStreams.java +++ b/android/guava/src/com/google/common/io/ByteStreams.java @@ -336,7 +336,7 @@ private static class ByteArrayDataInputStream implements ByteArrayDataInput { } @Override - public void readFully(byte b[]) { + public void readFully(byte[] b) { try { input.readFully(b); } catch (IOException e) { @@ -345,7 +345,7 @@ public void readFully(byte b[]) { } @Override - public void readFully(byte b[], int off, int len) { + public void readFully(byte[] b, int off, int len) { try { input.readFully(b, off, len); } catch (IOException e) { diff --git a/guava/src/com/google/common/io/ByteArrayDataInput.java b/guava/src/com/google/common/io/ByteArrayDataInput.java index e481663c1e1c..375f07cd67f4 100644 --- a/guava/src/com/google/common/io/ByteArrayDataInput.java +++ b/guava/src/com/google/common/io/ByteArrayDataInput.java @@ -37,10 +37,10 @@ @GwtIncompatible public interface ByteArrayDataInput extends DataInput { @Override - void readFully(byte b[]); + void readFully(byte[] b); @Override - void readFully(byte b[], int off, int len); + void readFully(byte[] b, int off, int len); // not guaranteed to skip n bytes so result should NOT be ignored // use ByteStreams.skipFully or one of the read methods instead diff --git a/guava/src/com/google/common/io/ByteArrayDataOutput.java b/guava/src/com/google/common/io/ByteArrayDataOutput.java index 8366a5790a8c..32c9e2fca9bc 100644 --- a/guava/src/com/google/common/io/ByteArrayDataOutput.java +++ b/guava/src/com/google/common/io/ByteArrayDataOutput.java @@ -33,10 +33,10 @@ public interface ByteArrayDataOutput extends DataOutput { void write(int b); @Override - void write(byte b[]); + void write(byte[] b); @Override - void write(byte b[], int off, int len); + void write(byte[] b, int off, int len); @Override void writeBoolean(boolean v); diff --git a/guava/src/com/google/common/io/ByteStreams.java b/guava/src/com/google/common/io/ByteStreams.java index 4f51773fb26d..17e8b9c92638 100644 --- a/guava/src/com/google/common/io/ByteStreams.java +++ b/guava/src/com/google/common/io/ByteStreams.java @@ -336,7 +336,7 @@ private static class ByteArrayDataInputStream implements ByteArrayDataInput { } @Override - public void readFully(byte b[]) { + public void readFully(byte[] b) { try { input.readFully(b); } catch (IOException e) { @@ -345,7 +345,7 @@ public void readFully(byte b[]) { } @Override - public void readFully(byte b[], int off, int len) { + public void readFully(byte[] b, int off, int len) { try { input.readFully(b, off, len); } catch (IOException e) {