mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
refined generic converter concept
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ class TypeConverterDelegate {
|
||||
else {
|
||||
typeDesc = TypeDescriptor.valueOf(requiredType);
|
||||
}
|
||||
if (conversionService.canConvert(convertedValue.getClass(), typeDesc)) {
|
||||
if (conversionService.matches(convertedValue.getClass(), typeDesc)) {
|
||||
return (T) conversionService.convert(convertedValue, typeDesc);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user