Skip to content

Commit

Permalink
Complete migration of annotation utility methods
Browse files Browse the repository at this point in the history
Delete `InternalAnnotationUtils` and `InternalAnnotatedElementUtils` and
migrate exclusively to the new `MergedAnnotations` API.

Closes spring-projectsgh-22562
  • Loading branch information
philwebb authored and snicoll committed Mar 13, 2019
1 parent 28f87af commit a44e08f
Show file tree
Hide file tree
Showing 14 changed files with 369 additions and 6,081 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,7 @@
* <h3>Usage Requirements</h3>
* <p>Like with any annotation in Java, the mere presence of {@code @AliasFor}
* on its own will not enforce alias semantics. For alias semantics to be
* enforced, annotations must be <em>loaded</em> via the utility methods in
* {@link AnnotationUtils}. Behind the scenes, Spring will <em>synthesize</em>
* an annotation by wrapping it in a dynamic proxy that transparently enforces
* <em>attribute alias</em> semantics for annotation attributes that are
* annotated with {@code @AliasFor}. Similarly, {@link AnnotatedElementUtils}
* supports explicit meta-annotation attribute overrides when {@code @AliasFor}
* is used within an annotation hierarchy. Typically you will not need to
* manually synthesize annotations on your own since Spring will do that for
* you transparently when looking up annotations on Spring-managed components.
* enforced, annotations must be <em>loaded</em> via {@link MergedAnnotations}.
*
* <h3>Implementation Requirements</h3>
* <ul>
Expand Down Expand Up @@ -176,9 +168,7 @@
*
* @author Sam Brannen
* @since 4.2
* @see AnnotatedElementUtils
* @see AnnotationUtils
* @see AnnotationUtils#synthesizeAnnotation(Annotation, java.lang.reflect.AnnotatedElement)
* @see MergedAnnotations
* @see SynthesizedAnnotation
*/
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Loading

0 comments on commit a44e08f

Please sign in to comment.