Skip to content

Commit

Permalink
FindAllAnnotations returns a List<A> now.
Browse files Browse the repository at this point in the history
  • Loading branch information
bechte committed Nov 7, 2015
1 parent 809c02a commit 2d29543
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ protected AbstractJUnit5TestDescriptor(String uniqueId) {
protected Set<TestTag> getTags(AnnotatedElement taggedElement) { protected Set<TestTag> getTags(AnnotatedElement taggedElement) {
Set<TestTag> tags = new HashSet<>(); Set<TestTag> tags = new HashSet<>();
// @formatter:off // @formatter:off
List<Annotation> tagAnnotations = AnnotationUtils.findAllAnnotations(taggedElement, Tag.class); List<Tag> tagAnnotations = AnnotationUtils.findAllAnnotations(taggedElement, Tag.class);
tagAnnotations.stream() tagAnnotations.stream()
.map(annotation -> (Tag) annotation) .map(annotation -> (Tag) annotation)
.map(Tag::value) .map(Tag::value)
Expand Down

0 comments on commit 2d29543

Please sign in to comment.