Skip to content

Commit

Permalink
Fixed MixedArrayDimensions warnings.
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 710113358
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Dec 27, 2024
1 parent 1462a03 commit 470f16f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions android/guava/src/com/google/common/io/ByteStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/io/ByteArrayDataInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/io/ByteArrayDataOutput.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions guava/src/com/google/common/io/ByteStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 470f16f

Please sign in to comment.