Browse Source

Merge branch '5.2.x'

pull/25464/head
Sam Brannen 6 years ago
parent
commit
c17f2047f6
  1. 4
      spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotations.java

4
spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotations.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -211,7 +211,7 @@ final class TypeMappedAnnotations implements MergedAnnotations { @@ -211,7 +211,7 @@ final class TypeMappedAnnotations implements MergedAnnotations {
@Override
public Spliterator<MergedAnnotation<Annotation>> spliterator() {
if (this.annotationFilter == AnnotationFilter.ALL) {
return Collections.<MergedAnnotation<Annotation>> emptyList().spliterator();
return Spliterators.emptySpliterator();
}
return spliterator(null);
}

Loading…
Cancel
Save