From 10fd5d9f9be5309682aa5d197f019f95a0331c01 Mon Sep 17 00:00:00 2001 From: Looly Date: Sun, 17 Jul 2022 18:19:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCombinationAnnotationElement?= =?UTF-8?q?=E9=80=A0=E6=88=90=E9=80=92=E5=BD=92=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hutool/core/annotation/CombinationAnnotationElement.java | 3 ++- 1 file changed, 2 insertions(+), 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 fd4800a0a..780dc681e 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 @@ -120,7 +120,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa // 直接注解 for (Annotation annotation : annotations) { annotationType = annotation.annotationType(); - // 跳过元注解和已经处理过的注解,防止递归调用 + // issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用 if (AnnotationUtil.isNotJdkMateAnnotation(annotationType) && false == declaredAnnotationMap.containsKey(annotationType)) { if(test(annotation)){ @@ -141,6 +141,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa Class annotationType; for (Annotation annotation : annotations) { annotationType = annotation.annotationType(); + // issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用 if (AnnotationUtil.isNotJdkMateAnnotation(annotationType) && false == declaredAnnotationMap.containsKey(annotationType)) { if(test(annotation)){