From 58e2f4b02fde8a5b7112c882cf860f19662cdac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=9A=E9=A3=9E=E7=9A=84=E8=A1=8C=E6=9D=8E?= <1601377117@qq.com> Date: Thu, 20 Mar 2025 23:54:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96--Array.equ?= =?UTF-8?q?als()=E6=96=B9=E6=B3=95=E4=BC=9A=E5=88=A4=E6=96=AD=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E7=9A=84=E9=A1=BA=E5=BA=8F=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E5=AD=90=E7=B1=BB=E9=87=8D=E5=86=99=E4=BA=86=E7=88=B6=E7=B1=BB?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E8=A7=A3=EF=BC=8C=E8=99=BD=E7=84=B6=E4=B8=A4?= =?UTF-8?q?=E8=80=85=E6=95=B0=E7=BB=84=E5=86=85=E9=83=A8=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E4=B8=80=E6=A0=B7=E7=9A=84=EF=BC=8C=E4=BD=86=E6=98=AF=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E9=A1=BA=E5=BA=8F=E4=B8=8D=E4=B8=80=E6=A0=B7=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E9=87=8C=E4=BC=9A=E8=BF=94=E5=9B=9Efalse=EF=BC=8C?= =?UTF-8?q?=E9=A2=9D=E5=A4=96=E8=B5=B0=E4=BA=86else=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E3=80=82=20=20=E4=BA=8C=E8=80=85=E5=8F=AA=E4=BC=9A?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=B3=A8=E8=A7=A3=E6=95=B0=E7=BB=84=E5=85=83?= =?UTF-8?q?=E7=B4=A0=E5=A4=9A=E6=88=96=E8=80=85=E5=B0=91=E6=88=96=E8=80=85?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5=EF=BC=8C=E4=B8=8D=E4=BC=9A=E5=AD=98=E5=9C=A8=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E7=9B=B8=E5=90=8C=E8=80=8C=E5=85=83=E7=B4=A0=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E6=83=85=E5=86=B5=E3=80=82=E5=9B=A0?= =?UTF-8?q?=E6=AD=A4=E5=8F=AA=E7=94=A8=E5=88=A4=E6=96=AD=E4=BA=8C=E8=80=85?= =?UTF-8?q?=E9=95=BF=E5=BA=A6=E6=98=AF=E5=90=A6=E7=9B=B8=E7=AD=89=E5=8D=B3?= =?UTF-8?q?=E5=8F=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/hutool/core/annotation/CombinationAnnotationElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java b/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java index c11ec9482..9c1c6d747 100755 --- a/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java +++ b/hutool-core/src/main/java/cn/hutool/core/annotation/CombinationAnnotationElement.java @@ -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<>();