修复JSONUtil序列化和反序列化预期的结果不一致问题

This commit is contained in:
Looly
2024-03-06 17:20:09 +08:00
parent fa67339509
commit 923cf3d265
5 changed files with 12 additions and 6 deletions

View File

@@ -153,7 +153,7 @@ public class ConverterRegistry implements Serializable {
*/
@SuppressWarnings("unchecked")
public <T> Converter<T> getDefaultConverter(Type type) {
Class<?> key = TypeUtil.getClass(type);
final Class<?> key = TypeUtil.getClass(type);
return (null == defaultConverterMap || null == key) ? null : (Converter<T>) defaultConverterMap.get(key);
}