Skip to content

Commit

Permalink
#67: Fix inconsistent hashcode from JSR 269 causing mismatch on same …
Browse files Browse the repository at this point in the history
…inOutTypes custom mapper
  • Loading branch information
slemesle committed Nov 5, 2015
1 parent 6b7f97a commit bf04caf
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -338,11 +338,11 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
int result = in != null ? in.hashCode() : 0;
result = 31 * result + (out != null ? out.hashCode() : 0);
// Here we use the string representation of types because hashCode is not consistent bw instances
int result = (""+in).hashCode();
result = 31 * result + (""+out).hashCode();
return result;
}

}

class CustomMapperEntry {
Expand Down

0 comments on commit bf04caf

Please sign in to comment.