diff --git a/spring-core/src/main/java/org/springframework/core/MethodParameter.java b/spring-core/src/main/java/org/springframework/core/MethodParameter.java index 8f12df23bc..a97658608f 100644 --- a/spring-core/src/main/java/org/springframework/core/MethodParameter.java +++ b/spring-core/src/main/java/org/springframework/core/MethodParameter.java @@ -227,6 +227,8 @@ public class MethodParameter { * Return the wrapped annotated element. *

Note: This method exposes the annotations declared on the method/constructor * itself (i.e. at the method/constructor level, not at the parameter level). + *

To get the {@link AnnotatedElement} at the parameter level, use + * {@link #getParameter()}. * @return the Method or Constructor as AnnotatedElement */ public AnnotatedElement getAnnotatedElement() {