File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
org.springframework.core/src/main/java/org/springframework/core/convert Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -547,13 +547,12 @@ public boolean equals(Object obj) {
547
547
if (!ObjectUtils .nullSafeEquals (getType (), other .getType ())) {
548
548
return false ;
549
549
}
550
- Annotation [] ann = getAnnotations ();
551
- Annotation [] otherAnn = other .getAnnotations ();
552
- if (ann .length != otherAnn .length ) {
550
+ Annotation [] annotations = getAnnotations ();
551
+ if (annotations .length != other .getAnnotations ().length ) {
553
552
return false ;
554
553
}
555
- for (int i = 0 ; i < ann . length ; i ++ ) {
556
- if (! ann [ i ]. annotationType (). equals ( otherAnn [ i ]. annotationType ())) {
554
+ for (Annotation ann : annotations ) {
555
+ if (other . getAnnotation ( ann . annotationType ()) == null ) {
557
556
return false ;
558
557
}
559
558
}
You can’t perform that action at this time.
0 commit comments