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:
Stéphane Nicoll 2023-10-05 16:55:48 +02:00
parent 147abc91a5
commit 19fd8159b2
1 changed files with 2 additions and 0 deletions

View File

@ -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() {