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
This commit is contained in:
parent
147abc91a5
commit
19fd8159b2
|
|
@ -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…
Reference in New Issue