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