Skip to content

Commit

Permalink
Use String#hashCode instead of auto-generated one
Browse files Browse the repository at this point in the history
  • Loading branch information
Lewis Headden committed Nov 28, 2017
1 parent f37eee2 commit cb1bfc2
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
int result = base;
result = 31 * result + exponent;
result = 31 * result + (format != null ? format.hashCode() : 0);
return result;
return this.toString().hashCode();
}
}

0 comments on commit cb1bfc2

Please sign in to comment.