Skip to content

Commit 11221f5

Browse files
committed
Fix Javadoc errors in AnnotatedElementUtils
1 parent 411ff84 commit 11221f5

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

spring-core/src/main/java/org/springframework/core/annotation/AnnotatedElementUtils.java

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -207,11 +207,11 @@ public Object process(AnnotatedElement annotatedElement, Annotation annotation,
207207
/**
208208
* Determine if the supplied {@link AnnotatedElement} is annotated with
209209
* a <em>composed annotation</em> that is meta-annotated with an
210-
* annotation of the specified {@code annotationName}.
210+
* annotation of the specified {@code annotationType}.
211211
* <p>This method follows <em>get semantics</em> as described in the
212212
* {@linkplain AnnotatedElementUtils class-level javadoc}.
213213
* @param element the annotated element
214-
* @param annotationType the annotation type on which to find meta-annotations
214+
* @param annotationType the meta-annotation type to find
215215
* @return {@code true} if a matching meta-annotation is present
216216
* @since 4.2.3
217217
* @see #getMetaAnnotationTypes
@@ -255,15 +255,15 @@ public Boolean process(AnnotatedElement annotatedElement, Annotation annotation,
255255
}
256256

257257
/**
258-
* Determine if an annotation of the specified {@code annotationName}
258+
* Determine if an annotation of the specified {@code annotationType}
259259
* is <em>present</em> on the supplied {@link AnnotatedElement} or
260260
* within the annotation hierarchy <em>above</em> the specified element.
261261
* <p>If this method returns {@code true}, then {@link #getMergedAnnotationAttributes}
262262
* will return a non-null value.
263263
* <p>This method follows <em>get semantics</em> as described in the
264264
* {@linkplain AnnotatedElementUtils class-level javadoc}.
265265
* @param element the annotated element
266-
* @param annotationType the annotation type on which to find meta-annotations
266+
* @param annotationType the annotation type to find
267267
* @return {@code true} if a matching annotation is present
268268
* @since 4.2.3
269269
*/
@@ -461,7 +461,7 @@ public static <A extends Annotation> A findMergedAnnotation(AnnotatedElement ele
461461
}
462462

463463
/**
464-
* Find the first annotation of the specified {@code annotationName} within
464+
* Find the first annotation of the specified {@code annotationType} within
465465
* the annotation hierarchy <em>above</em> the supplied {@code element} and
466466
* merge that annotation's attributes with <em>matching</em> attributes from
467467
* annotations in lower levels of the annotation hierarchy.
@@ -472,8 +472,8 @@ public static <A extends Annotation> A findMergedAnnotation(AnnotatedElement ele
472472
* <p>In contrast to {@link #getAllAnnotationAttributes}, the search
473473
* algorithm used by this method will stop searching the annotation
474474
* hierarchy once the first annotation of the specified
475-
* {@code annotationName} has been found. As a consequence, additional
476-
* annotations of the specified {@code annotationName} will be ignored.
475+
* {@code annotationType} has been found. As a consequence, additional
476+
* annotations of the specified {@code annotationType} will be ignored.
477477
* <p>This method follows <em>find semantics</em> as described in the
478478
* {@linkplain AnnotatedElementUtils class-level javadoc}.
479479
* @param element the annotated element
@@ -613,10 +613,11 @@ public Void process(AnnotatedElement annotatedElement, Annotation annotation, in
613613
}
614614

615615
/**
616-
* Search for annotations of the specified {@code annotationName} on
617-
* the specified {@code element}, following <em>get semantics</em>.
616+
* Search for annotations of the specified {@code annotationName} or
617+
* {@code annotationType} on the specified {@code element}, following
618+
* <em>get semantics</em>.
618619
* @param element the annotated element
619-
* @param annotationType the annotation type on which to find meta-annotations
620+
* @param annotationType the annotation type to find
620621
* @param annotationName the fully qualified class name of the annotation
621622
* type to find (as an alternative to {@code annotationType})
622623
* @param processor the processor to delegate to
@@ -642,7 +643,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
642643
* <p>The {@code metaDepth} parameter is explained in the
643644
* {@link Processor#process process()} method of the {@link Processor} API.
644645
* @param element the annotated element
645-
* @param annotationType the annotation type on which to find meta-annotations
646+
* @param annotationType the annotation type to find
646647
* @param annotationName the fully qualified class name of the annotation
647648
* type to find (as an alternative to {@code annotationType})
648649
* @param processor the processor to delegate to
@@ -702,7 +703,7 @@ private static <T> T searchWithGetSemantics(AnnotatedElement element,
702703
* @param annotatedElement the element that is annotated with the supplied
703704
* annotations, used for contextual logging; may be {@code null} if unknown
704705
* @param annotations the annotations to search in
705-
* @param annotationType the annotation type on which to find meta-annotations
706+
* @param annotationType the annotation type to find
706707
* @param annotationName the fully qualified class name of the annotation
707708
* type to find (as an alternative to {@code annotationType})
708709
* @param processor the processor to delegate to
@@ -744,10 +745,11 @@ private static <T> T searchWithGetSemanticsInAnnotations(AnnotatedElement annota
744745
}
745746

746747
/**
747-
* Search for annotations of the specified {@code annotationName} on
748-
* the specified {@code element}, following <em>find semantics</em>.
748+
* Search for annotations of the specified {@code annotationName} or
749+
* {@code annotationType} on the specified {@code element}, following
750+
* <em>find semantics</em>.
749751
* @param element the annotated element
750-
* @param annotationType the annotation type on which to find meta-annotations
752+
* @param annotationType the annotation type to find
751753
* @param annotationName the fully qualified class name of the annotation
752754
* type to find (as an alternative to {@code annotationType})
753755
* @param processor the processor to delegate to
@@ -774,7 +776,7 @@ private static <T> T searchWithFindSemantics(
774776
* <p>The {@code metaDepth} parameter is explained in the
775777
* {@link Processor#process process()} method of the {@link Processor} API.
776778
* @param element the annotated element
777-
* @param annotationType the annotation type on which to find meta-annotations
779+
* @param annotationType the annotation type to find
778780
* @param annotationName the fully qualified class name of the annotation
779781
* type to find (as an alternative to {@code annotationType})
780782
* @param processor the processor to delegate to
@@ -1004,7 +1006,7 @@ public final void postProcess(AnnotatedElement annotatedElement, Annotation anno
10041006
* annotation attributes from lower levels in the annotation hierarchy
10051007
* during the {@link #postProcess} phase.
10061008
* @since 4.2
1007-
* @see AnnotationUtils#retrieveAnnotationAttributes(AnnotatedElement, Annotation, boolean, boolean)
1009+
* @see AnnotationUtils#retrieveAnnotationAttributes
10081010
* @see AnnotationUtils#postProcessAnnotationAttributes
10091011
*/
10101012
private static class MergedAnnotationAttributesProcessor implements Processor<AnnotationAttributes> {

0 commit comments

Comments
 (0)