[ 
https://issues.apache.org/jira/browse/OAK-10644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Reschke resolved OAK-10644.
----------------------------------
    Fix Version/s: 1.62.0
       Resolution: Fixed

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