From ee2041388b6adcf3a6727415be78a90774ed4113 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Thu, 1 Aug 2019 23:14:35 +0200 Subject: [PATCH] Fix typo in Javadoc for MergedAnnotations --- .../org/springframework/core/annotation/MergedAnnotations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java b/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java index fbfb4146f85..dbd4db3def1 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/MergedAnnotations.java @@ -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