[ 
https://issues.apache.org/jira/browse/OAK-10644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17816978#comment-17816978
 ] 

Julian Reschke commented on OAK-10644:
--------------------------------------

trunk: 
[f7b20aa777|https://github.com/apache/jackrabbit-oak/commit/f7b20aa777a4d95a8f8a54ee020b86cd35ee30c1]

> 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)

Reply via email to