diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java index 6ffdf65b0a..ebf091ad7a 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotationUtils.java @@ -1289,8 +1289,15 @@ public abstract class AnnotationUtils { } /** - * TODO Document getAttributeMethods(). + * Get all methods declared in the supplied {@code annotationType} that + * match Java's requirements for annotation attributes. * + *

All methods in the returned list will be + * {@linkplain ReflectionUtils#makeAccessible(Method) made accessible}. + * + * @param annotationType the type in which to search for attribute methods + * @return all annotation attribute methods in the specified annotation + * type; never {@code null}, though potentially empty * @since 4.2 */ static List getAttributeMethods(Class annotationType) {