--- old/src/java.base/share/classes/java/lang/StringUTF16.java 2018-09-28 11:28:41.965908797 +0700 +++ new/src/java.base/share/classes/java/lang/StringUTF16.java 2018-09-28 11:28:41.541908797 +0700 @@ -246,7 +246,7 @@ } @HotSpotIntrinsicCandidate - public static void getChars(byte[] value, int srcBegin, int srcEnd, char dst[], int dstBegin) { + public static void getChars(byte[] value, int srcBegin, int srcEnd, char[] dst, int dstBegin) { // We need a range check here because 'getChar' has no checks if (srcBegin < srcEnd) { checkBoundsOffCount(srcBegin, srcEnd - srcBegin, value); @@ -257,7 +257,7 @@ } /* @see java.lang.String.getBytes(int, int, byte[], int) */ - public static void getBytes(byte[] value, int srcBegin, int srcEnd, byte dst[], int dstBegin) { + public static void getBytes(byte[] value, int srcBegin, int srcEnd, byte[] dst, int dstBegin) { srcBegin <<= 1; srcEnd <<= 1; for (int i = srcBegin + (1 >> LO_BYTE_SHIFT); i < srcEnd; i += 2) { @@ -574,7 +574,7 @@ } } if (i < len) { - byte buf[] = new byte[value.length]; + byte[] buf = new byte[value.length]; for (int j = 0; j < i; j++) { putChar(buf, j, getChar(value, j)); // TBD:arraycopy? }