Browse Source

Fix typo in Javadoc for MergedAnnotations

pull/23401/head
Sam Brannen 7 years ago
parent
commit
ee2041388b
  1. 2
      spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java

2
spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java

@ -111,7 +111,7 @@ import org.springframework.lang.Nullable; @@ -111,7 +111,7 @@ import org.springframework.lang.Nullable;
* mergedAnnotations.get(ExampleAnnotation.class).getString("value");
*
* // get all meta-annotations but no directly present annotations
* mergedAnnotations.stream().anyMatch(MergedAnnotation::isMetaPresent);
* mergedAnnotations.stream().filter(MergedAnnotation::isMetaPresent);
*
* // get all ExampleAnnotation declarations (including any meta-annotations) and
* // print the merged "value" attributes

Loading…
Cancel
Save