mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
修复CombinationAnnotationElement造成递归循环
This commit is contained in:
parent
5c6e7cf507
commit
10fd5d9f9b
@ -120,7 +120,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa
|
|||||||
// 直接注解
|
// 直接注解
|
||||||
for (Annotation annotation : annotations) {
|
for (Annotation annotation : annotations) {
|
||||||
annotationType = annotation.annotationType();
|
annotationType = annotation.annotationType();
|
||||||
// 跳过元注解和已经处理过的注解,防止递归调用
|
// issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用
|
||||||
if (AnnotationUtil.isNotJdkMateAnnotation(annotationType)
|
if (AnnotationUtil.isNotJdkMateAnnotation(annotationType)
|
||||||
&& false == declaredAnnotationMap.containsKey(annotationType)) {
|
&& false == declaredAnnotationMap.containsKey(annotationType)) {
|
||||||
if(test(annotation)){
|
if(test(annotation)){
|
||||||
@ -141,6 +141,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa
|
|||||||
Class<? extends Annotation> annotationType;
|
Class<? extends Annotation> annotationType;
|
||||||
for (Annotation annotation : annotations) {
|
for (Annotation annotation : annotations) {
|
||||||
annotationType = annotation.annotationType();
|
annotationType = annotation.annotationType();
|
||||||
|
// issue#I5FQGW@Gitee:跳过元注解和已经处理过的注解,防止递归调用
|
||||||
if (AnnotationUtil.isNotJdkMateAnnotation(annotationType)
|
if (AnnotationUtil.isNotJdkMateAnnotation(annotationType)
|
||||||
&& false == declaredAnnotationMap.containsKey(annotationType)) {
|
&& false == declaredAnnotationMap.containsKey(annotationType)) {
|
||||||
if(test(annotation)){
|
if(test(annotation)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user