修改所调用的 ObjectUtil#defaultIfNull 的重载版本

This commit is contained in:
2024-11-04 15:23:11 +08:00
parent 8b79d3caa3
commit 75b434fb49
8 changed files with 12 additions and 9 deletions

View File

@@ -105,8 +105,8 @@ public class JSONObject extends MapWrapper<String, Object> implements JSON, JSON
* @since 4.1.19
*/
public JSONObject(int capacity, JSONConfig config) {
super(InternalJSONUtil.createRawMap(capacity, ObjectUtil.defaultIfNull(config, JSONConfig.create())));
this.config = ObjectUtil.defaultIfNull(config, JSONConfig.create());
super(InternalJSONUtil.createRawMap(capacity, ObjectUtil.defaultIfNull(config, JSONConfig::create)));
this.config = ObjectUtil.defaultIfNull(config, JSONConfig::create);
}
/**