Skip to content

Commit fcb63db

Browse files
committed
Fix: refactor WildcardTypeImpl
Signed-off-by: anaconda875 <hflbtmax@gmail.com>
1 parent 517bd6b commit fcb63db

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

spring-core/src/main/java/org/springframework/core/ResolvableType.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,18 +1727,18 @@ public boolean equals(Object o) {
17271727

17281728
@Override
17291729
public int hashCode() {
1730-
return Arrays.hashCode(getLowerBounds()) ^ Arrays.hashCode(getUpperBounds());
1730+
return Arrays.hashCode(this.lowerBound) ^ Arrays.hashCode(this.upperBound);
17311731
}
17321732

17331733
@Override
17341734
public String toString() {
1735-
if (getLowerBounds().length == 1) {
1736-
return "? super " + typeToString(getLowerBounds()[0]);
1735+
if (this.lowerBound.length == 1) {
1736+
return "? super " + typeToString(this.lowerBound[0]);
17371737
}
1738-
if (getUpperBounds().length == 0 || getUpperBounds()[0] == Object.class) {
1738+
if (this.upperBound.length == 0 || this.upperBound[0] == Object.class) {
17391739
return "?";
17401740
}
1741-
return "? extends " + typeToString(getUpperBounds()[0]);
1741+
return "? extends " + typeToString(this.upperBound[0]);
17421742
}
17431743

17441744
private static String typeToString(Type type) {

0 commit comments

Comments
 (0)