--- old/src/java.base/share/classes/java/io/RandomAccessFile.java 2018-09-28 11:27:52.409908797 +0700 +++ new/src/java.base/share/classes/java/io/RandomAccessFile.java 2018-09-28 11:27:50.357908797 +0700 @@ -375,7 +375,7 @@ * @param len the number of bytes to read. * @exception 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 len} bytes of data from this file into an @@ -402,7 +402,7 @@ * {@code len} is negative, or {@code len} is greater than * {@code b.length - off} */ - 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); } @@ -425,7 +425,7 @@ * some other I/O error occurs. * @exception NullPointerException If {@code b} is {@code null}. */ - public int read(byte b[]) throws IOException { + public int read(byte[] b) throws IOException { return readBytes(b, 0, b.length); } @@ -442,7 +442,7 @@ * all the bytes. * @throws IOException if an I/O error occurs. */ - public final void readFully(byte b[]) throws IOException { + public final void readFully(byte[] b) throws IOException { readFully(b, 0, b.length); } @@ -464,7 +464,7 @@ * all the bytes. * @throws IOException if an I/O error occurs. */ - public final void readFully(byte b[], int off, int len) throws IOException { + public final void readFully(byte[] b, int off, int len) throws IOException { int n = 0; do { int count = this.read(b, off + n, len - n); @@ -533,7 +533,7 @@ * @param len the number of bytes that are written * @exception IOException If an I/O error has occurred. */ - private native void writeBytes(byte b[], int off, int len) throws IOException; + private native void writeBytes(byte[] b, int off, int len) throws IOException; /** * Writes {@code b.length} bytes from the specified byte array @@ -542,7 +542,7 @@ * @param b the data. * @exception IOException if an I/O error occurs. */ - public void write(byte b[]) throws IOException { + public void write(byte[] b) throws IOException { writeBytes(b, 0, b.length); } @@ -555,7 +555,7 @@ * @param len the number of bytes to write. * @exception IOException if an I/O error occurs. */ - public void write(byte b[], int off, int len) throws IOException { + public void write(byte[] b, int off, int len) throws IOException { writeBytes(b, off, len); }