From 46462b3d00f5fb5843ca9a748ea214934ffcd4b5 Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Mon, 29 Jan 2018 08:51:17 +0100 Subject: [PATCH] Rephrases JavaDoc to better express function's meaning --- .../java/com/opensymphony/xwork2/util/AnnotationUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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<>();