This commit is contained in:
Looly
2020-11-05 01:42:35 +08:00
parent 394d05f9d2
commit 637e1942f9
7 changed files with 107 additions and 3 deletions

View File

@@ -77,9 +77,7 @@ public class JSONConverter implements Converter<JSON> {
}
}
final T targetValue = ignoreError ?
Convert.convertQuietly(targetType, value):
Convert.convert(targetType, value);
final T targetValue = Convert.convertWithCheck(targetType, value, null, ignoreError);
if (null == targetValue && false == ignoreError) {
if (StrUtil.isBlankIfStr(value)) {