Browse Source

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
pull/31496/head
Stéphane Nicoll 1 year ago
parent
commit
19fd8159b2
  1. 2
      spring-core/src/main/java/org/springframework/core/MethodParameter.java

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

@ -227,6 +227,8 @@ public class MethodParameter { @@ -227,6 +227,8 @@ public class MethodParameter {
* Return the wrapped annotated element.
* <p>Note: This method exposes the annotations declared on the method/constructor
* itself (i.e. at the method/constructor level, not at the parameter level).
* <p>To get the {@link AnnotatedElement} at the parameter level, use
* {@link #getParameter()}.
* @return the Method or Constructor as AnnotatedElement
*/
public AnnotatedElement getAnnotatedElement() {

Loading…
Cancel
Save