Converter转换规则变更,空对象、空值转为Bean时,创建默认对象,而非nul

This commit is contained in:
Looly 2024-07-11 12:48:31 +08:00
parent b2510cf661
commit c7019cd851

View File

@ -344,7 +344,7 @@ public class ConverterRegistry implements Serializable {
// 空值转空Bean
if(ObjectUtil.isEmpty(value)){
// issue#3649 空值转空对象则直接实例化
return (T) ReflectUtil.newInstanceIfPossible(rowType);
return ReflectUtil.newInstanceIfPossible(rowType);
}
// 表示非需要特殊转换的对象