mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix comment
This commit is contained in:
parent
749ecb0e7d
commit
66201839e3
@ -85,8 +85,9 @@ public class SyntheticMetaAnnotation implements SyntheticAnnotation {
|
|||||||
/**
|
/**
|
||||||
* 基于指定根注解,为其层级结构中的全部注解构造一个合成注解
|
* 基于指定根注解,为其层级结构中的全部注解构造一个合成注解
|
||||||
*
|
*
|
||||||
* @param annotation 当前查找的注解类
|
* @param annotation 当前查找的注解对象
|
||||||
* @param annotationSelector 合成注解选择器
|
* @param annotationSelector 合成注解选择器
|
||||||
|
* @param attributeProcessor 注解属性处理器
|
||||||
*/
|
*/
|
||||||
public SyntheticMetaAnnotation(
|
public SyntheticMetaAnnotation(
|
||||||
Annotation annotation,
|
Annotation annotation,
|
||||||
@ -147,7 +148,6 @@ public class SyntheticMetaAnnotation implements SyntheticAnnotation {
|
|||||||
* @param annotationType 注解类型
|
* @param annotationType 注解类型
|
||||||
* @return 已合成的注解
|
* @return 已合成的注解
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
@Override
|
@Override
|
||||||
public SynthesizedAnnotation getSynthesizedAnnotation(Class<?> annotationType) {
|
public SynthesizedAnnotation getSynthesizedAnnotation(Class<?> annotationType) {
|
||||||
return metaAnnotationMap.get(annotationType);
|
return metaAnnotationMap.get(annotationType);
|
||||||
@ -308,15 +308,20 @@ public class SyntheticMetaAnnotation implements SyntheticAnnotation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取根注解到元注解的距离
|
* 获取该合成注解与根注解之间相隔的层级数
|
||||||
*
|
*
|
||||||
* @return 根注解到元注解的距离
|
* @return 该合成注解与根注解之间相隔的层级数
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int getVerticalDistance() {
|
public int getVerticalDistance() {
|
||||||
return verticalDistance;
|
return verticalDistance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取该合成注解与根注解之间相隔的注解树
|
||||||
|
*
|
||||||
|
* @return 该合成注解与根注解之间相隔的注解树
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public int getHorizontalDistance() {
|
public int getHorizontalDistance() {
|
||||||
return horizontalDistance;
|
return horizontalDistance;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user