You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2024/02/13 10:21:26 UTC
(jackrabbit-oak) branch OAK-10644 created (now 04efea86f1)
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a change to branch OAK-10644
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
at 04efea86f1 OAK-10644: JsopBuilder: remove JDK6ism
This branch includes the following new commits:
new 04efea86f1 OAK-10644: JsopBuilder: remove JDK6ism
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(jackrabbit-oak) 01/01: OAK-10644: JsopBuilder: remove JDK6ism
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
reschke pushed a commit to branch OAK-10644
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
commit 04efea86f101928fce44573b8c4b61dcbc492fe7
Author: Julian Reschke <re...@apache.org>
AuthorDate: Tue Feb 13 11:21:10 2024 +0100
OAK-10644: JsopBuilder: remove JDK6ism
---
.../main/java/org/apache/jackrabbit/oak/commons/json/JsopBuilder.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/json/JsopBuilder.java b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/json/JsopBuilder.java
index 7d384f7108..32d44b72ba 100644
--- a/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/json/JsopBuilder.java
+++ b/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/json/JsopBuilder.java
@@ -332,8 +332,7 @@ public class JsopBuilder implements JsopWriter {
default:
if (c < ' ') {
buff.append(String.format("\\u%04x", (int) c));
- } else if (c >= 0xd800 && c <= 0xdbff) {
- // isSurrogate(), only available in Java 7
+ } else if (Character.isSurrogate(c)) {
if (i < length - 1 && Character.isSurrogatePair(c, s.charAt(i + 1))) {
// ok surrogate
buff.append(c);