From c2f5dabeeea7dfbd1d7013eec0efbb89738049cb Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 3 Aug 2019 00:13:30 +0200 Subject: [PATCH] Polishing --- .../core/annotation/MergedAnnotationPredicates.java | 2 +- .../org/springframework/core/type/AnnotatedTypeMetadata.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 c53b5b8d094..d62620f7d31 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 a67361fe5d5..b32e552a543 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();