--- old/src/java.base/share/classes/java/io/DataInputStream.java 2018-09-28 11:26:23.589908797 +0700
+++ new/src/java.base/share/classes/java/io/DataInputStream.java 2018-09-28 11:26:23.169908797 +0700
@@ -55,8 +55,8 @@
/**
* working arrays initialized on demand by readUTF
*/
- private byte bytearr[] = new byte[80];
- private char chararr[] = new char[80];
+ private byte[] bytearr = new byte[80];
+ private char[] chararr = new char[80];
/**
* Reads some number of bytes from the contained input stream and
@@ -96,7 +96,7 @@
* @see java.io.FilterInputStream#in
* @see java.io.InputStream#read(byte[], int, int)
*/
- public final int read(byte b[]) throws IOException {
+ public final int read(byte[] b) throws IOException {
return in.read(b, 0, b.length);
}
@@ -145,7 +145,7 @@
* @see java.io.FilterInputStream#in
* @see java.io.InputStream#read(byte[], int, int)
*/
- public final int read(byte b[], int off, int len) throws IOException {
+ public final int read(byte[] b, int off, int len) throws IOException {
return in.read(b, off, len);
}
@@ -166,7 +166,7 @@
* another I/O error occurs.
* @see java.io.FilterInputStream#in
*/
- public final void readFully(byte b[]) throws IOException {
+ public final void readFully(byte[] b) throws IOException {
readFully(b, 0, b.length);
}
@@ -192,7 +192,7 @@
* another I/O error occurs.
* @see java.io.FilterInputStream#in
*/
- public final void readFully(byte b[], int off, int len) throws IOException {
+ public final void readFully(byte[] b, int off, int len) throws IOException {
if (len < 0)
throw new IndexOutOfBoundsException();
int n = 0;
@@ -398,7 +398,7 @@
return ((ch1 << 24) + (ch2 << 16) + (ch3 << 8) + (ch4 << 0));
}
- private byte readBuffer[] = new byte[8];
+ private byte[] readBuffer = new byte[8];
/**
* See the general contract of the readLong
@@ -473,7 +473,7 @@
return Double.longBitsToDouble(readLong());
}
- private char lineBuffer[];
+ private char[] lineBuffer;
/**
* See the general contract of the readLine
@@ -504,7 +504,7 @@
*/
@Deprecated
public final String readLine() throws IOException {
- char buf[] = lineBuffer;
+ char[] buf = lineBuffer;
if (buf == null) {
buf = lineBuffer = new char[128];