mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix 3504
This commit is contained in:
@@ -153,7 +153,8 @@ public class ConverterRegistry implements Serializable {
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T> Converter<T> getDefaultConverter(Type type) {
|
||||
return (null == defaultConverterMap) ? null : (Converter<T>) defaultConverterMap.get(TypeUtil.getClass(type));
|
||||
Class<?> key = TypeUtil.getClass(type);
|
||||
return (null == defaultConverterMap || null == key) ? null : (Converter<T>) defaultConverterMap.get(key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user