Skip to content

Commit

Permalink
fixed files form Mockito #11
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 7c1eef1 commit 487e8ea
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,19 @@ public boolean isAbstract() {
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o instanceof DelegatingMethod) {
DelegatingMethod that = (DelegatingMethod) o;
return method.equals(that.method);
} else {
return method.equals(o);
}
}

@Override
public int hashCode() {
return 1;
return method.hashCode();
}
}

0 comments on commit 487e8ea

Please sign in to comment.