Skip to content

Commit 19fd815

Browse files
committed
Improve Javadoc of MethodParameter#getAnnotatedElement
This commit adds a reference to the method that can be used to get the AnnotatedElement at the parameter level. Closes gh-30397
1 parent 147abc9 commit 19fd815

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-core/src/main/java/org/springframework/core/MethodParameter.java

+2
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ public Member getMember() {
227227
* Return the wrapped annotated element.
228228
* <p>Note: This method exposes the annotations declared on the method/constructor
229229
* itself (i.e. at the method/constructor level, not at the parameter level).
230+
* <p>To get the {@link AnnotatedElement} at the parameter level, use
231+
* {@link #getParameter()}.
230232
* @return the Method or Constructor as AnnotatedElement
231233
*/
232234
public AnnotatedElement getAnnotatedElement() {

0 commit comments

Comments
 (0)