mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 21:49:03 +00:00
initial data binder commit; dateformatter
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1283 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+6
-1
@@ -39,7 +39,12 @@ abstract class AbstractCollectionConverter implements ConversionExecutor {
|
||||
Class<?> sourceElementType = sourceCollectionType.getElementType();
|
||||
Class<?> targetElementType = targetCollectionType.getElementType();
|
||||
if (sourceElementType != null && targetElementType != null) {
|
||||
elementConverter = conversionService.getConversionExecutor(sourceElementType, TypeDescriptor.valueOf(targetElementType));
|
||||
ConversionExecutor executor = conversionService.getConversionExecutor(sourceElementType, TypeDescriptor.valueOf(targetElementType));
|
||||
if (executor != null) {
|
||||
elementConverter = executor;
|
||||
} else {
|
||||
elementConverter = NoOpConversionExecutor.INSTANCE;
|
||||
}
|
||||
} else {
|
||||
elementConverter = NoOpConversionExecutor.INSTANCE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user