mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 08:24:13 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user