mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix comment
This commit is contained in:
parent
4a3b8d843a
commit
e02813b65b
@ -461,11 +461,11 @@ public class AnnotationUtil {
|
||||
* <p>注解合成规则如下:
|
||||
* 若{@code AnnotatedEle}按顺序从上到下声明了A,B,C三个注解,且三注解存在元注解如下:
|
||||
* <pre>
|
||||
* A -> MA1 -> MA2
|
||||
* B -> MB1 -> MB2
|
||||
* C -> MC1
|
||||
* A -> M3
|
||||
* B -> M1 -> M2 -> M3
|
||||
* C -> M2 -> M3
|
||||
* </pre>
|
||||
* 此时入参{@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三个注解,且三注解存在元注解如下:
|
||||
* <pre>
|
||||
* A -> M1 -> M2
|
||||
* B -> M3 -> M1
|
||||
* B -> M3 -> M1 -> M2
|
||||
* C -> M2
|
||||
* </pre>
|
||||
* 此时入参{@code annotationType}类型为{@code M1},则最终将返回基于根注解A与根注解B合成的合成注解。
|
||||
|
Loading…
Reference in New Issue
Block a user