Update ObjectMapper.java

cn.hutool.json.ObjectMapper.java 212行 mapFromStr函数
重复调用StrUtil.trim(source)
This commit is contained in:
骨灰级 2025-02-18 15:53:36 +08:00 committed by GitHub
parent 21d3dadd13
commit b0e1302332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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