use type descriptor to determine collection element type

This commit is contained in:
Andy Clement 2009-04-01 16:52:12 +00:00
parent cd164a5d9b
commit accf974727
1 changed files with 1 additions and 2 deletions

View File

@ -18,7 +18,6 @@ package org.springframework.core.convert.service;
import java.util.Collection;
import java.util.Iterator;
import org.springframework.core.GenericCollectionTypeResolver;
import org.springframework.core.convert.ConversionExecutor;
import org.springframework.core.convert.TypeDescriptor;
@ -44,7 +43,7 @@ class CollectionToCollection extends AbstractCollectionConverter {
ConversionExecutor elementConverter = getElementConverter();
Class elementType;
if (elementConverter == null) {
elementType = GenericCollectionTypeResolver.getCollectionType(targetCollectionType);
elementType = getTargetType().getElementType();
} else {
elementType = null;
}