This commit is contained in:
looly 2021-12-13 09:34:15 +08:00
parent 021d074a09
commit 18b340e61d
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@
-------------------------------------------------------------------------------------------------------------
# 5.7.18 (2021-12-12)
# 5.7.18 (2021-12-13)
### 🐣新特性
* 【core 】 新增CollStreamUtil.groupKeyValuepr#479@Gitee
@ -12,6 +12,7 @@
* 【core 】 LineReadWatcher#onModify文件清空判断问题issue#2013@Github
* 【core 】 修复4位bytes转换float问题issue#I4M0E4@Gitee
* 【core 】 修复CharSequenceUtil.replace问题issue#I4M16G@Gitee
* 【json 】 修复JSONObject 初始化大小值未被使用问题issue#2016@Github
-------------------------------------------------------------------------------------------------------------
# 5.7.17 (2021-12-09)

View File

@ -123,7 +123,7 @@ public class JSONObject implements JSON, JSONGetter<String>, Map<String, Object>
if (config.isIgnoreCase()) {
this.rawHashMap = config.isOrder() ? new CaseInsensitiveLinkedMap<>(capacity) : new CaseInsensitiveMap<>(capacity);
} else {
this.rawHashMap = MapUtil.newHashMap(config.isOrder());
this.rawHashMap = MapUtil.newHashMap(capacity, config.isOrder());
}
this.config = config;
}