Update CombinationAnnotationElement.java

false == declaredAnnotationMap.containsKey(annotationType)用的变量declaredAnnotationMap不对,此处应该用annotationMap。
This commit is contained in:
Mark Ashbur 2023-08-21 19:06:21 +08:00 committed by GitHub
parent 713832e5fe
commit cfc9ef80ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa
annotationType = annotation.annotationType(); annotationType = annotation.annotationType();
// issue#I5FQGW@Gitee跳过元注解和已经处理过的注解防止递归调用 // issue#I5FQGW@Gitee跳过元注解和已经处理过的注解防止递归调用
if (AnnotationUtil.isNotJdkMateAnnotation(annotationType) if (AnnotationUtil.isNotJdkMateAnnotation(annotationType)
&& false == declaredAnnotationMap.containsKey(annotationType)) { && false == annotationMap.containsKey(annotationType)) {
if(test(annotation)){ if(test(annotation)){
annotationMap.put(annotationType, annotation); annotationMap.put(annotationType, annotation);
} }