SPR-8718 Revert fix from earlier for now (need a different approach).

This commit is contained in:
Rossen Stoyanchev
2011-09-26 17:58:49 +00:00
parent 5309e43ea0
commit 3d50d416eb
3 changed files with 3 additions and 9 deletions

View File

@@ -485,7 +485,7 @@ public class GenericConversionService implements ConfigurableConversionService {
}
@SuppressWarnings("unchecked")
private final class ConverterAdapter implements ConditionalGenericConverter {
private final class ConverterAdapter implements GenericConverter {
private final ConvertiblePair typeInfo;
@@ -500,11 +500,6 @@ public class GenericConversionService implements ConfigurableConversionService {
return Collections.singleton(this.typeInfo);
}
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
return (typeInfo.getTargetType().equals(targetType.getObjectType()) &&
typeInfo.getSourceType().isAssignableFrom(sourceType.getObjectType()));
}
public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
if (source == null) {
return convertNullSource(sourceType, targetType);