mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-08 01:59:14 +08:00
fix code
This commit is contained in:
parent
8ef76cc56b
commit
944e914454
@ -200,8 +200,7 @@ public class BeanUtil {
|
||||
}
|
||||
|
||||
// 先尝试直接获取属性
|
||||
if (bean instanceof Map) {
|
||||
final Map<?, ?> map = (Map<?, ?>) bean;
|
||||
if (bean instanceof Map<?, ?> map) {
|
||||
if (map.containsKey(expression)) {
|
||||
return (T) map.get(expression);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user