fix comment

This commit is contained in:
huangchengxing
2022-07-17 23:46:36 +08:00
parent 4a3b8d843a
commit e02813b65b

View File

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