From 2959e8351b805d1c667323d204334c028fe26589 Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 12 Dec 2024 16:09:58 +0800 Subject: [PATCH 1/2] update api --- README-EN.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README-EN.md b/README-EN.md index e97a535e9..a572e249c 100755 --- a/README-EN.md +++ b/README-EN.md @@ -119,7 +119,7 @@ Each module can be introduced individually, or all modules can be introduced by [📘Chinese back-up documentation](https://plus.hutool.cn/) -[📙API](https://apidoc.gitee.com/dromara/hutool/) +[📙API](https://plus.hutool.cn/apidocs/) [🎬Video](https://www.bilibili.com/video/BV1bQ4y1M7d9?p=2) diff --git a/README.md b/README.md index 4f0285353..fbad57511 100755 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Hutool = Hu + tool,是原公司项目底层代码剥离后的开源库,“Hu [📘中文备用文档](https://plus.hutool.cn/) -[📙参考API](https://apidoc.gitee.com/dromara/hutool/) +[📙参考API](https://plus.hutool.cn/apidocs/) [🎬视频介绍](https://www.bilibili.com/video/BV1bQ4y1M7d9?p=2) From b0e130233284488c370c73b0c5b206121dda4d8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=A8=E7=81=B0=E7=BA=A7?= <303690073@qq.com> Date: Tue, 18 Feb 2025 15:53:36 +0800 Subject: [PATCH 2/2] Update ObjectMapper.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cn.hutool.json.ObjectMapper.java 212行 mapFromStr函数 重复调用StrUtil.trim(source) --- hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java b/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java index 32c8b035f..05d59ec51 100755 --- a/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java +++ b/hutool-json/src/main/java/cn/hutool/json/ObjectMapper.java @@ -216,7 +216,7 @@ public class ObjectMapper { XML.toJSONObject(jsonObject, jsonStr, false); return; } - mapFromTokener(new JSONTokener(StrUtil.trim(source), jsonObject.getConfig()), jsonObject, filter); + mapFromTokener(new JSONTokener(jsonStr, jsonObject.getConfig()), jsonObject, filter); } /**