From b723dcebba13380bc7ac6d60f1c0127c2645a85d Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 23 Apr 2015 03:02:57 +0200 Subject: [PATCH] Polish inline documentation in AnnotatedElementUtils --- .../core/annotation/AnnotatedElementUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java index 2cc0564c7b..40f533bf21 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java @@ -243,7 +243,7 @@ public class AnnotatedElementUtils { if (visited.add(element)) { try { - // Local annotations: either directly declared or inherited. + // Local annotations: declared or (declared + inherited). Annotation[] annotations = (searchClassHierarchy ? element.getDeclaredAnnotations() : element.getAnnotations()); @@ -263,7 +263,7 @@ public class AnnotatedElementUtils { } } - // Search in meta annotations on location annotations + // Search in meta annotations on local annotations for (Annotation annotation : annotations) { if (!AnnotationUtils.isInJavaLangAnnotationPackage(annotation)) { T result = doProcess(annotation.annotationType(), annotationType, searchInterfaces,