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