Browse Source

use type descriptor to determine collection element type

conversation
Andy Clement 16 years ago
parent
commit
accf974727
  1. 3
      org.springframework.core/src/main/java/org/springframework/core/convert/service/CollectionToCollection.java

3
org.springframework.core/src/main/java/org/springframework/core/convert/service/CollectionToCollection.java

@ -18,7 +18,6 @@ package org.springframework.core.convert.service; @@ -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 { @@ -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;
}

Loading…
Cancel
Save