mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 05:09:13 +00:00
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:
+1
-1
@@ -189,7 +189,7 @@ public class TypeDescriptor<T> {
|
||||
}
|
||||
return cachedFieldAnnotations;
|
||||
} else if (methodParameter != null) {
|
||||
return methodParameter.getParameterAnnotations();
|
||||
return methodParameter.getMethod().getAnnotations();
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user