From e02813b65bb70d9c06cf3e844c44aeb29da958e2 Mon Sep 17 00:00:00 2001 From: huangchengxing <841396397@qq.com> Date: Sun, 17 Jul 2022 23:46:36 +0800 Subject: [PATCH] fix comment --- .../java/cn/hutool/core/annotation/AnnotationUtil.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/annotation/AnnotationUtil.java b/hutool-core/src/main/java/cn/hutool/core/annotation/AnnotationUtil.java index 0c3e70e1a..bb0756f58 100755 --- a/hutool-core/src/main/java/cn/hutool/core/annotation/AnnotationUtil.java +++ b/hutool-core/src/main/java/cn/hutool/core/annotation/AnnotationUtil.java @@ -461,11 +461,11 @@ public class AnnotationUtil { *

注解合成规则如下: * 若{@code AnnotatedEle}按顺序从上到下声明了A,B,C三个注解,且三注解存在元注解如下: *

-	 *    A -> MA1 -> MA2
-	 *    B -> MB1 -> MB2
-	 *    C -> MC1
+	 *    A -> M3
+	 *    B -> M1 -> M2 -> M3
+	 *    C -> M2 -> M3
 	 * 
- * 此时入参{@code annotationType}类型为{@code MB1},则最终将优先返回基于根注解B合成的合成注解 + * 此时入参{@code annotationType}类型为{@code M2},则最终将优先返回基于根注解B合成的合成注解 * * @param annotatedEle {@link AnnotatedElement},可以是Class、Method、Field、Constructor、ReflectPermission * @param annotationType 注解类 @@ -499,7 +499,7 @@ public class AnnotationUtil { * 若{@code AnnotatedEle}按顺序从上到下声明了A,B,C三个注解,且三注解存在元注解如下: *
 	 *    A -> M1 -> M2
-	 *    B -> M3 -> M1
+	 *    B -> M3 -> M1 -> M2
 	 *    C -> M2
 	 * 
* 此时入参{@code annotationType}类型为{@code M1},则最终将返回基于根注解A与根注解B合成的合成注解。