quick fix for util method usage

This commit is contained in:
Ryan O'Neill 2015-08-06 14:20:47 -07:00
parent fd8d159919
commit f5e9354ba0

View File

@ -38,7 +38,7 @@ final class Tokenizer {
return "tab";
else if (codepoint == -1)
return "end of file";
else if (Character.isISOControl(codepoint))
else if (ConfigImplUtil.isC0Control(codepoint))
return String.format("control character 0x%x", codepoint);
else
return String.format("%c", codepoint);
@ -424,9 +424,6 @@ final class Tokenizer {
case 't':
sb.append('\t');
break;
case '$':
sb.append("\\$");
break;
case 'u': {
// kind of absurdly slow, but screw it for now
char[] a = new char[4];
@ -537,7 +534,7 @@ final class Tokenizer {
// Reset and continue
sb = new StringBuilder();
sbOrig = new StringBuilder();
} else if (Character.isISOControl(c)) {
} else if (ConfigImplUtil.isC0Control(c)) {
throw problem(asString(c), "JSON does not allow unescaped " + asString(c)
+ " in quoted strings, use a backslash escape");
} else {