You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2024/02/12 13:02:00 UTC
[jira] [Created] (OAK-10644) JsopBuilder: remove JDK6ism
Julian Reschke created OAK-10644:
------------------------------------
Summary: JsopBuilder: remove JDK6ism
Key: OAK-10644
URL: https://issues.apache.org/jira/browse/OAK-10644
Project: Jackrabbit Oak
Issue Type: Task
Components: commons
Reporter: Julian Reschke
Assignee: Julian Reschke
{noformat}
default:
if (c < ' ') {
buff.append(String.format("\\u%04x", (int) c));
} else if (c >= 0xd800 && c <= 0xdbff) {
// isSurrogate(), only available in Java 7
if (i < length - 1 && Character.isSurrogatePair(c, s.charAt(i + 1))) {
// ok surrogate
buff.append(c);
buff.append(s.charAt(i + 1));
i += 1;
} else {
// broken surrogate -> escape
buff.append(String.format("\\u%04x", (int) c));
}
} else {
buff.append(c);
}
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)