From cfc9ef80ed76f16c2627a0e6873e1224072a1418 Mon Sep 17 00:00:00 2001 From: Mark Ashbur Date: Mon, 21 Aug 2023 19:06:21 +0800 Subject: [PATCH] Update CombinationAnnotationElement.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit false == declaredAnnotationMap.containsKey(annotationType)用的变量declaredAnnotationMap不对,此处应该用annotationMap。 --- .../cn/hutool/core/annotation/CombinationAnnotationElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java b/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java index 780dc681e..bfe8b8598 100755 --- a/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java +++ b/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java @@ -143,7 +143,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa annotationType = annotation.annotationType(); // issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用 if (AnnotationUtil.isNotJdkMateAnnotation(annotationType) - && false == declaredAnnotationMap.containsKey(annotationType)) { + && false == annotationMap.containsKey(annotationType)) { if(test(annotation)){ annotationMap.put(annotationType, annotation); }