This commit is contained in:
Looly
2022-04-30 19:45:32 +08:00
parent d368fb1949
commit dea8344d91
25 changed files with 255 additions and 140 deletions

View File

@@ -103,6 +103,7 @@ public class JSONConverter implements Converter<JSON> {
* @throws ConvertException 转换失败
* @since 5.7.10
*/
@SuppressWarnings("unchecked")
protected static <T> T jsonToBean(Type targetType, Object value, boolean ignoreError) throws ConvertException {
if (JSONUtil.isNull(value)) {
return null;
@@ -111,7 +112,6 @@ public class JSONConverter implements Converter<JSON> {
if(value instanceof JSON){
final JSONDeserializer<?> deserializer = GlobalSerializeMapping.getDeserializer(targetType);
if(null != deserializer) {
//noinspection unchecked
return (T) deserializer.deserialize((JSON) value);
}