Skip to content

Commit

Permalink
Improve Javadoc of MethodParameter#getAnnotatedElement
Browse files Browse the repository at this point in the history
This commit adds a reference to the method that can be used to get
the AnnotatedElement at the parameter level.

Closes gh-30397
  • Loading branch information
snicoll committed Oct 5, 2023
1 parent 147abc9 commit 19fd815
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ public Member getMember() {
* 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() {
Expand Down

0 comments on commit 19fd815

Please sign in to comment.