mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
added initial support for handling unknown nested type values when converting collections; now favor factory method for constructing nested type descriptors for clarity (made constructor private); improved javadoc
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3867 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+2
-2
@@ -236,7 +236,7 @@ public class ReflectionHelper {
|
||||
TypeDescriptor targetType;
|
||||
if (varargsPosition != null && argPosition >= varargsPosition) {
|
||||
MethodParameter methodParam = MethodParameter.forMethodOrConstructor(methodOrCtor, varargsPosition);
|
||||
targetType = new TypeDescriptor(methodParam.getParameterType().getComponentType(), methodParam);
|
||||
targetType = TypeDescriptor.forNestedType(methodParam.getParameterType().getComponentType(), methodParam);
|
||||
}
|
||||
else {
|
||||
targetType = new TypeDescriptor(MethodParameter.forMethodOrConstructor(methodOrCtor, argPosition));
|
||||
@@ -268,7 +268,7 @@ public class ReflectionHelper {
|
||||
TypeDescriptor targetType;
|
||||
if (varargsPosition != null && argPosition >= varargsPosition) {
|
||||
MethodParameter methodParam = new MethodParameter(method, varargsPosition);
|
||||
targetType = new TypeDescriptor(methodParam.getParameterType().getComponentType(), methodParam);
|
||||
targetType = TypeDescriptor.forNestedType(methodParam.getParameterType().getComponentType(), methodParam);
|
||||
}
|
||||
else {
|
||||
targetType = new TypeDescriptor(new MethodParameter(method, argPosition));
|
||||
|
||||
Reference in New Issue
Block a user