git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1942 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald 2009-09-18 23:06:29 +00:00
parent 9c1f491c72
commit c2fce6e963
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class CollectionGenericConverter implements GenericConverter {
TypeDescriptor targetElementType = targetType.getElementTypeDescriptor();
if (sourceElementType == TypeDescriptor.NULL || sourceElementType.isAssignableTo(targetElementType)) {
if (sourceType.isAssignableTo(targetType)) {
return source;
return sourceCollection;
} else {
Collection targetCollection = CollectionFactory.createCollection(targetType.getType(), sourceCollection.size());
targetCollection.addAll(sourceCollection);