Skip to content

Commit 39ccc50

Browse files
committed
Modify equals() in WildcardTypeImpl and GenericArrayTypeImpl
1 parent a863e58 commit 39ccc50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/org/apache/ibatis/reflection/TypeParameterResolver.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,11 @@ public boolean equals(Object obj) {
343343
if (this == obj) {
344344
return true;
345345
}
346-
if (!(obj instanceof WildcardTypeImpl)) {
346+
if (!(obj instanceof WildcardType)) {
347347
return false;
348348
}
349-
WildcardTypeImpl other = (WildcardTypeImpl) obj;
350-
return Arrays.equals(lowerBounds, other.lowerBounds) && Arrays.equals(upperBounds, other.upperBounds);
349+
WildcardType other = (WildcardType) obj;
350+
return Arrays.equals(lowerBounds, other.getLowerBounds()) && Arrays.equals(upperBounds, other.getUpperBounds());
351351
}
352352

353353
@Override
@@ -385,11 +385,11 @@ public boolean equals(Object obj) {
385385
if (this == obj) {
386386
return true;
387387
}
388-
if (!(obj instanceof GenericArrayTypeImpl)) {
388+
if (!(obj instanceof GenericArrayType)) {
389389
return false;
390390
}
391-
GenericArrayTypeImpl other = (GenericArrayTypeImpl) obj;
392-
return Objects.equals(genericComponentType, other.genericComponentType);
391+
GenericArrayType other = (GenericArrayType) obj;
392+
return Objects.equals(genericComponentType, other.getGenericComponentType());
393393
}
394394

395395
@Override

0 commit comments

Comments
 (0)