modified so that when the descriptor represents a method parameter, we retrieve the annotations from the method and not the method parameter (seems to make more sense - certainly in the binding case)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1295 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
3342a7acaf
commit
6a571da90e
|
|
@ -189,7 +189,7 @@ public class TypeDescriptor<T> {
|
||||||
}
|
}
|
||||||
return cachedFieldAnnotations;
|
return cachedFieldAnnotations;
|
||||||
} else if (methodParameter != null) {
|
} else if (methodParameter != null) {
|
||||||
return methodParameter.getParameterAnnotations();
|
return methodParameter.getMethod().getAnnotations();
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue