This commit is contained in:
Looly 2023-08-08 20:02:43 +08:00
parent 4ffb48412b
commit 6d100e4e0c
3 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
* 【core 】 NumberUtil.nullToZero增加重载issue#I7PPD2@Gitee
* 【core 】 DesensitizedUtil增加清空策略issue#I7PUJ2@Gitee
* 【all 】 修改异常包装策略运行时异常不包装只包装非运行时异常issue#I7RJZT@Gitee
* 【cor 】 增加IJSONTypeConverter避免反射调用pr#1051@Gitee
### 🐞Bug修复
* 【core 】 修复NumberUtil.toBigDecimal转换科学计数法问题issue#3241@Github

View File

@ -7,6 +7,7 @@ import java.lang.reflect.Type;
* 使用此接口避免使用反射调用toBean方法而性能太差
*
* @author mkeq
* @since 5.8.22
*/
public interface IJSONTypeConverter {

View File

@ -178,7 +178,7 @@ public interface JSON extends Cloneable, Serializable, IJSONTypeConverter {
* @since 3.0.8
*/
default <T> T toBean(Type type) {
return toBean(type, getConfig().isIgnoreError());
return JSONConverter.jsonConvert(type, this, getConfig());
}
/**