--- old/src/java.base/share/classes/java/net/SocketInputStream.java 2018-09-28 11:29:03.277908797 +0700 +++ new/src/java.base/share/classes/java/net/SocketInputStream.java 2018-09-28 11:29:02.881908797 +0700 @@ -47,7 +47,7 @@ private boolean eof; private AbstractPlainSocketImpl impl = null; - private byte temp[]; + private byte[] temp; private Socket socket = null; /** @@ -91,7 +91,7 @@ * @exception IOException If an I/O error has occurred. */ private native int socketRead0(FileDescriptor fd, - byte b[], int off, int len, + byte[] b, int off, int len, int timeout) throws IOException; @@ -109,7 +109,7 @@ * @exception IOException If an I/O error has occurred. */ private int socketRead(FileDescriptor fd, - byte b[], int off, int len, + byte[] b, int off, int len, int timeout) throws IOException { return socketRead0(fd, b, off, len, timeout); @@ -122,7 +122,7 @@ * returned when the end of the stream is reached. * @exception IOException If an I/O error has occurred. */ - public int read(byte b[]) throws IOException { + public int read(byte[] b) throws IOException { return read(b, 0, b.length); } @@ -136,11 +136,11 @@ * returned when the end of the stream is reached. * @exception IOException If an I/O error has occurred. */ - public int read(byte b[], int off, int length) throws IOException { + public int read(byte[] b, int off, int length) throws IOException { return read(b, off, length, impl.getTimeout()); } - int read(byte b[], int off, int length, int timeout) throws IOException { + int read(byte[] b, int off, int length, int timeout) throws IOException { int n; // EOF already encountered @@ -216,7 +216,7 @@ } long n = numbytes; int buflen = (int) Math.min(1024, n); - byte data[] = new byte[buflen]; + byte[] data = new byte[buflen]; while (n > 0) { int r = read(data, 0, (int) Math.min((long) buflen, n)); if (r < 0) {