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] 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); } /**