!1323 判断注解数组元素是否相同优化

Merge pull request !1323 from 会飞的行李/v5-dev
This commit is contained in:
Looly 2025-03-24 04:23:36 +00:00 committed by Gitee
commit 158a0f03ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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<>();