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/13 12:10:00 UTC
[jira] [Updated] (OAK-10644) JsopBuilder: remove JDK6ism
[ https://issues.apache.org/jira/browse/OAK-10644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated OAK-10644:
---------------------------------
Labels: candidate_oak_1_22 (was: )
> 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
> Priority: Minor
> Labels: candidate_oak_1_22
> Fix For: 1.62.0
>
>
> {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)