--- a/jdk/src/java.base/share/classes/java/lang/String.java Mon Nov 23 11:07:36 2015 +0100
+++ b/jdk/src/java.base/share/classes/java/lang/String.java Fri Nov 27 09:37:33 2015 +0100
@@ -1720,7 +1720,6 @@
*/
static int indexOf(byte[] src, byte srcCoder, int srcCount,
String tgtStr, int fromIndex) {
-
byte[] tgt = tgtStr.value;
byte tgtCoder = tgtStr.coder();
int tgtCount = tgtStr.length();
@@ -3103,7 +3102,7 @@
* If {@code offset} is negative, {@code count} is negative,
* or {@code offset} is greater than {@code length - count}
*/
- private static void checkBoundsOffCount(int offset, int count, int length) {
+ static void checkBoundsOffCount(int offset, int count, int length) {
if (offset < 0 || count < 0 || offset > length - count) {
throw new StringIndexOutOfBoundsException(
"offset " + offset + ", count " + count + ", length " + length);