json
This commit is contained in:
@@ -373,11 +373,13 @@ public class JsonCharsWriter extends JsonWriter {
|
|||||||
writeEscapeLatinString(quote, Utility.latin1ByteArray(str));
|
writeEscapeLatinString(quote, Utility.latin1ByteArray(str));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// byte[] utf16s = Utility.byteUTF16Array(value);
|
if (false) {
|
||||||
// if (utf16s != null) { // JDK9+
|
byte[] utf16s = Utility.utf16ByteArray(value);
|
||||||
// writeEscapeUTF16String(quote, utf16s);
|
if (utf16s != null) { // JDK9+
|
||||||
// return;
|
writeEscapeUTF16String(quote, utf16s);
|
||||||
// }
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
final int len = str.length();
|
final int len = str.length();
|
||||||
char[] chars = expand(len * 2 + 2);
|
char[] chars = expand(len * 2 + 2);
|
||||||
int curr = count;
|
int curr = count;
|
||||||
|
|||||||
Reference in New Issue
Block a user