mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
判断注解数组元素是否相同优化
This commit is contained in:
parent
3fc7937f9a
commit
9d1c268a1a
@ -103,7 +103,7 @@ public class CombinationAnnotationElement implements AnnotatedElement, Serializa
|
|||||||
parseDeclared(declaredAnnotations);
|
parseDeclared(declaredAnnotations);
|
||||||
|
|
||||||
final Annotation[] annotations = element.getAnnotations();
|
final Annotation[] annotations = element.getAnnotations();
|
||||||
if (Arrays.equals(declaredAnnotations, annotations)) {
|
if (declaredAnnotations.length == annotations.length) {
|
||||||
this.annotationMap = this.declaredAnnotationMap;
|
this.annotationMap = this.declaredAnnotationMap;
|
||||||
} else {
|
} else {
|
||||||
this.annotationMap = new TableMap<>();
|
this.annotationMap = new TableMap<>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user