Skip to content

Commit

Permalink
JANDEX-42 Update hash code to include the target
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Oct 24, 2017
1 parent 1ce748a commit ac50733
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jboss/jandex/AnnotationInstance.java
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ public boolean equals(Object o) {
public int hashCode() {
int result = name.hashCode();
result = 31 * result + Arrays.hashCode(values);
if(target != null) {
result = 31 * result + target.hashCode();
}
return result;
}
}

0 comments on commit ac50733

Please sign in to comment.