Browse Source

Polishing

pull/23415/head
Sam Brannen 6 years ago
parent
commit
c2f5dabeee
  1. 2
      spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotationPredicates.java
  2. 1
      spring-core/src/main/java/org/springframework/core/type/AnnotatedTypeMetadata.java

2
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 * Create a new stateful, single use {@link Predicate} that matches
* annotations that are unique based on the extracted key. For example * 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. * match the first time a unique type is encountered.
* @param keyExtractor function used to extract the key used to test for * @param keyExtractor function used to extract the key used to test for
* uniqueness * uniqueness

1
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 * Return annotation details based on the direct annotations of the
* underlying element. * underlying element.
* @return merged annotations based on the direct annotations * @return merged annotations based on the direct annotations
* @since 5.2
*/ */
MergedAnnotations getAnnotations(); MergedAnnotations getAnnotations();

Loading…
Cancel
Save