mirror of
https://gitee.com/dromara/hutool.git
synced 2026-02-09 09:16:26 +08:00
fix code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user