mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
修正Assert.notNull的message内容;
This commit is contained in:
parent
3e21370503
commit
37dbef1c36
@ -97,7 +97,8 @@ public class Dict extends CustomKeyMap<String, Object> implements TypeGetter<Str
|
|||||||
|
|
||||||
String key = null;
|
String key = null;
|
||||||
for (int i = 0; i < keysAndValues.length; i++) {
|
for (int i = 0; i < keysAndValues.length; i++) {
|
||||||
if (i % 2 == 0) {
|
// 偶数
|
||||||
|
if ((i & 1) == 0) {
|
||||||
key = Convert.toStr(keysAndValues[i]);
|
key = Convert.toStr(keysAndValues[i]);
|
||||||
} else {
|
} else {
|
||||||
dict.put(key, keysAndValues[i]);
|
dict.put(key, keysAndValues[i]);
|
||||||
@ -258,7 +259,7 @@ public class Dict extends CustomKeyMap<String, Object> implements TypeGetter<Str
|
|||||||
* @return 自己
|
* @return 自己
|
||||||
*/
|
*/
|
||||||
public <T> Dict parseBean(final T bean) {
|
public <T> 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));
|
this.putAll(BeanUtil.beanToMap(bean));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -274,7 +275,7 @@ public class Dict extends CustomKeyMap<String, Object> implements TypeGetter<Str
|
|||||||
* @return 自己
|
* @return 自己
|
||||||
*/
|
*/
|
||||||
public <T> Dict parseBean(final T bean, final boolean isToUnderlineCase, final boolean ignoreNullValue) {
|
public <T> 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));
|
this.putAll(BeanUtil.beanToMap(bean, isToUnderlineCase, ignoreNullValue));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user