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

@ -237,7 +237,7 @@ public class FileInputStream extends InputStream
* @param len the number of bytes that are written
* @throws IOException If an I/O error has occurred.
*/
private native int readBytes(byte b[], int off, int len) throws IOException;
private native int readBytes(byte[] b, int off, int len) throws IOException;
/**
* Reads up to {@code b.length} bytes of data from this input
@ -250,7 +250,7 @@ public class FileInputStream extends InputStream
* the file has been reached.
* @throws IOException if an I/O error occurs.
*/
public int read(byte b[]) throws IOException {
public int read(byte[] b) throws IOException {
return readBytes(b, 0, b.length);
}
@ -272,7 +272,7 @@ public class FileInputStream extends InputStream
* {@code b.length - off}
* @throws IOException if an I/O error occurs.
*/
public int read(byte b[], int off, int len) throws IOException {
public int read(byte[] b, int off, int len) throws IOException {
return readBytes(b, off, len);
}