From 37dbef1c361e2b32811f45d68ca1d2eb89e7684c Mon Sep 17 00:00:00 2001 From: Zjp <1215582715@qq.com> Date: Tue, 18 Oct 2022 14:03:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Assert.notNull=E7=9A=84messag?= =?UTF-8?q?e=E5=86=85=E5=AE=B9;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-core/src/main/java/cn/hutool/core/map/Dict.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/map/Dict.java b/hutool-core/src/main/java/cn/hutool/core/map/Dict.java index 4883c6e31..21081f83f 100755 --- a/hutool-core/src/main/java/cn/hutool/core/map/Dict.java +++ b/hutool-core/src/main/java/cn/hutool/core/map/Dict.java @@ -97,7 +97,8 @@ public class Dict extends CustomKeyMap implements TypeGetter implements TypeGetter Dict parseBean(final T bean) { - Assert.notNull(bean, "Bean class must be not null"); + Assert.notNull(bean, "Bean must not be null"); this.putAll(BeanUtil.beanToMap(bean)); return this; } @@ -274,7 +275,7 @@ public class Dict extends CustomKeyMap implements TypeGetter Dict parseBean(final T bean, final boolean isToUnderlineCase, final boolean ignoreNullValue) { - Assert.notNull(bean, "Bean class must be not null"); + Assert.notNull(bean, "Bean must not be null"); this.putAll(BeanUtil.beanToMap(bean, isToUnderlineCase, ignoreNullValue)); return this; }