Filter repeatable annotations in AnnotationTypeMappings

Prior to this commit, AnnotationTypeMappings did not filter repeatable
annotations with the supplied annotation filter.

Closes gh-25483
This commit is contained in:
yilianhuaixiao
2020-07-28 15:37:22 +08:00
committed by Sam Brannen
parent b841e8560c
commit 83a95832e6
2 changed files with 12 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ final class AnnotationTypeMappings {
Annotation[] repeatedAnnotations = this.repeatableContainers.findRepeatedAnnotations(metaAnnotation);
if (repeatedAnnotations != null) {
for (Annotation repeatedAnnotation : repeatedAnnotations) {
if (!isMappable(source, metaAnnotation)) {
if (!isMappable(source, repeatedAnnotation)) {
continue;
}
addIfPossible(queue, source, repeatedAnnotation);