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