From c7019cd85167ad32603d2664520b2a714a3faf7f Mon Sep 17 00:00:00 2001 From: Looly Date: Thu, 11 Jul 2024 12:48:31 +0800 Subject: [PATCH] =?UTF-8?q?Converter=E8=BD=AC=E6=8D=A2=E8=A7=84=E5=88=99?= =?UTF-8?q?=E5=8F=98=E6=9B=B4=EF=BC=8C=E7=A9=BA=E5=AF=B9=E8=B1=A1=E3=80=81?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E8=BD=AC=E4=B8=BABean=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=BB=98=E8=AE=A4=E5=AF=B9=E8=B1=A1=EF=BC=8C?= =?UTF-8?q?=E8=80=8C=E9=9D=9Enul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hutool/core/convert/ConverterRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/convert/ConverterRegistry.java b/hutool-core/src/main/java/cn/hutool/core/convert/ConverterRegistry.java index 41c262934..abc55ab2d 100755 --- a/hutool-core/src/main/java/cn/hutool/core/convert/ConverterRegistry.java +++ b/hutool-core/src/main/java/cn/hutool/core/convert/ConverterRegistry.java @@ -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); } // 表示非需要特殊转换的对象