From 7e2e9a80d0129d5488edbe54cc469b50f481ed3e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 23 May 2015 22:27:13 +0200 Subject: [PATCH] Document getAttributeMethods() in AnnotationUtils Issue: SPR-11512 --- .../springframework/core/annotation/AnnotationUtils.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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) {