mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
e8f1219d6f
commit
30b0f820ce
54 changed files with 140 additions and 140 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue