8272626: Avoid C-style array declarations in java.*

Reviewed-by: dfuchs, alanb
This commit is contained in:
Claes Redestad 2021-08-18 10:47:03 +00:00
parent e8f1219d6f
commit 30b0f820ce
54 changed files with 140 additions and 140 deletions

View file

@ -66,7 +66,7 @@ public interface ObjectInput extends DataInput, AutoCloseable {
* returned when the end of the stream is reached.
* @throws IOException If an I/O error has occurred.
*/
public int read(byte b[]) throws IOException;
public int read(byte[] b) throws IOException;
/**
* Reads into an array of bytes. This method will
@ -78,7 +78,7 @@ public interface ObjectInput extends DataInput, AutoCloseable {
* returned when the end of the stream is reached.
* @throws IOException If an I/O error has occurred.
*/
public int read(byte b[], int off, int len) throws IOException;
public int read(byte[] b, int off, int len) throws IOException;
/**
* Skips n bytes of input.