Skip to content

Commit 7e2e9a8

Browse files
committed
Document getAttributeMethods() in AnnotationUtils
Issue: SPR-11512
1 parent 7bf609f commit 7e2e9a8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,15 @@ static String getAliasedAttributeName(Method attribute, Class<? extends Annotati
12891289
}
12901290

12911291
/**
1292-
* TODO Document getAttributeMethods().
1292+
* Get all methods declared in the supplied {@code annotationType} that
1293+
* match Java's requirements for annotation <em>attributes</em>.
12931294
*
1295+
* <p>All methods in the returned list will be
1296+
* {@linkplain ReflectionUtils#makeAccessible(Method) made accessible}.
1297+
*
1298+
* @param annotationType the type in which to search for attribute methods
1299+
* @return all annotation attribute methods in the specified annotation
1300+
* type; never {@code null}, though potentially <em>empty</em>
12941301
* @since 4.2
12951302
*/
12961303
static List<Method> getAttributeMethods(Class<? extends Annotation> annotationType) {

0 commit comments

Comments
 (0)