Favor convertValue(Object, TypeDescriptor) where possible and TypedValue(Object); check with Andy on Selection and Projection TypedValue usage

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3881 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2011-01-07 06:32:21 +00:00
parent 97033d66fb
commit 61d54ae436
12 changed files with 32 additions and 47 deletions
@@ -87,5 +87,10 @@ class BeanFactoryTypeConverter implements TypeConverter, BeanFactoryAware {
}
return delegate.convertIfNecessary(value, targetType.getType());
}
public Object convertValue(Object value, TypeDescriptor targetType) {
return convertValue(value, TypeDescriptor.forObject(value), targetType);
}
}