--- old/src/java.base/share/classes/jdk/internal/util/xml/impl/Parser.java 2018-09-28 11:30:09.713908797 +0700 +++ new/src/java.base/share/classes/jdk/internal/util/xml/impl/Parser.java 2018-09-28 11:30:09.317908797 +0700 @@ -120,9 +120,9 @@ /** * Default prefixes */ - private static final char NONS[]; - private static final char XML[]; - private static final char XMLNS[]; + private static final char[] NONS; + private static final char[] XML; + private static final char[] XMLNS; static { NONS = new char[1]; @@ -154,7 +154,7 @@ * character which does not fall in any category listed above is mapped to * it self. */ - private static final byte asctyp[]; + private static final byte[] asctyp; /** * NMTOKEN character type array. * @@ -166,7 +166,7 @@ * An ASCII (7 bit) character which does not fall in any category listed * above is mapped to 0xff. */ - private static final byte nmttyp[]; + private static final byte[] nmttyp; /** * Static constructor. @@ -952,7 +952,7 @@ * @exception IOException */ private void dtdattl() throws Exception { - char elmqn[] = null; + char[] elmqn = null; Pair elm = null; char ch; for (short st = 0; st >= 0;) { @@ -1038,7 +1038,7 @@ */ @SuppressWarnings("fallthrough") private void dtdatt(Pair elm) throws Exception { - char attqn[] = null; + char[] attqn = null; Pair att = null; char ch; for (short st = 0; st >= 0;) { @@ -1774,7 +1774,7 @@ throws Exception { mBuffIdx = -1; bname(ns); - char chars[] = new char[mBuffIdx + 1]; + char[] chars = new char[mBuffIdx + 1]; System.arraycopy(mBuff, 0, chars, 0, mBuffIdx + 1); return chars; } @@ -2710,7 +2710,7 @@ mBuff[++mBuffIdx] = ch; } catch (Exception exp) { // Double the buffer size - char buff[] = new char[mBuff.length << 1]; + char[] buff = new char[mBuff.length << 1]; System.arraycopy(mBuff, 0, buff, 0, mBuff.length); mBuff = buff; mBuff[mBuffIdx] = ch; @@ -2728,7 +2728,7 @@ int length = mChIdx - cidx; if ((bidx + length + 1) >= mBuff.length) { // Expand the buffer - char buff[] = new char[mBuff.length + length]; + char[] buff = new char[mBuff.length + length]; System.arraycopy(mBuff, 0, buff, 0, mBuff.length); mBuff = buff; }