diff --git a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java b/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java index 567c9fd79..1273b5036 100644 --- a/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java +++ b/core/src/main/java/com/opensymphony/xwork2/util/AnnotationUtils.java @@ -154,13 +154,13 @@ public class AnnotationUtils { } /** - * Returns the annotation on the given class or the package of the class. This searches up the - * class hierarchy and the package hierarchy for the closest match. + * Returns a list of the annotation on the given class or the package of the class. + * This searches up the class hierarchy and the package hierarchy. * * @param class type * @param clazz The class to search for the annotation. * @param annotationClass The Class of the annotation. - * @return The annotation or null. + * @return List of the annotations or an empty list. */ public static List findAnnotations(Class clazz, Class annotationClass) { List anns = new ArrayList<>();