Skip to content

Commit cb1bfc2

Browse files
author
Lewis Headden
committed
Use String#hashCode instead of auto-generated one
1 parent f37eee2 commit cb1bfc2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

kubernetes/src/main/java/io/kubernetes/client/custom/BaseExponent.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ public boolean equals(Object o) {
4545

4646
@Override
4747
public int hashCode() {
48-
int result = base;
49-
result = 31 * result + exponent;
50-
result = 31 * result + (format != null ? format.hashCode() : 0);
51-
return result;
48+
return this.toString().hashCode();
5249
}
5350
}

0 commit comments

Comments
 (0)