mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
gts
This commit is contained in:
parent
4ffb48412b
commit
6d100e4e0c
@ -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)
|
||||
|
@ -7,6 +7,7 @@ import java.lang.reflect.Type;
|
||||
* 使用此接口避免使用反射调用toBean方法而性能太差。
|
||||
*
|
||||
* @author mkeq
|
||||
* @since 5.8.22
|
||||
*/
|
||||
public interface IJSONTypeConverter {
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user