diff --git a/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationPredicates.java b/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationPredicates.java index c53b5b8d09..d62620f7d3 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationPredicates.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationPredicates.java @@ -101,7 +101,7 @@ public abstract class MergedAnnotationPredicates { /** * Create a new stateful, single use {@link Predicate} that matches * annotations that are unique based on the extracted key. For example - * {@code MergedAnnotationPredicates.unique(MergedAnnotation::type)} will + * {@code MergedAnnotationPredicates.unique(MergedAnnotation::getType)} will * match the first time a unique type is encountered. * @param keyExtractor function used to extract the key used to test for * uniqueness diff --git a/spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java b/spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java index a67361fe5d..b32e552a54 100644 --- a/spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java +++ b/spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java @@ -49,6 +49,7 @@ public interface AnnotatedTypeMetadata { * Return annotation details based on the direct annotations of the * underlying element. * @return merged annotations based on the direct annotations + * @since 5.2 */ MergedAnnotations getAnnotations();