--- old/src/java.base/share/classes/java/net/URLConnection.java 2018-09-28 11:29:07.893908797 +0700 +++ new/src/java.base/share/classes/java/net/URLConnection.java 2018-09-28 11:29:07.465908797 +0700 @@ -1415,7 +1415,7 @@ // make sure we canonicalize the class name: all lower case contentType = contentType.toLowerCase(); int len = contentType.length(); - char nm[] = new char[len]; + char[] nm = new char[len]; contentType.getChars(0, len, nm, 0); for (int i = 0; i < len; i++) { char c = nm[i]; @@ -1693,7 +1693,7 @@ return false; } - int c[] = new int[16]; + int[] c = new int[16]; if (readBytes(c, 2, is) < 0) { is.reset(); return false; @@ -1812,10 +1812,10 @@ * Returns -1, If EOF is reached before len bytes are read, returns 0 * otherwise */ - private static int readBytes(int c[], int len, InputStream is) + private static int readBytes(int[] c, int len, InputStream is) throws IOException { - byte buf[] = new byte[len]; + byte[] buf = new byte[len]; if (is.read(buf, 0, len) < len) { return -1; }