mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
c2e0da7182
commit
3e9452dfe8
@ -69,7 +69,9 @@ public class TripleConverter implements Converter {
|
||||
public Triple<?, ?, ?> convert(final Type leftType, final Type middleType, final Type rightType, final Object value)
|
||||
throws ConvertException {
|
||||
Map map = null;
|
||||
if (BeanUtil.isReadableBean(value.getClass())) {
|
||||
if(value instanceof Map){
|
||||
map = (Map) value;
|
||||
}else if (BeanUtil.isReadableBean(value.getClass())) {
|
||||
// 一次性只读场景,包装为Map效率更高
|
||||
map = BeanUtil.toBeanMap(value);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user