Skip to content

Commit

Permalink
Merge pull request #2757 from swagger-api/ticket-2740
Browse files Browse the repository at this point in the history
refs #2740 - updated equals()
  • Loading branch information
frantuma authored Apr 10, 2018
2 parents e4ebc2e + febdce8 commit 89c53e4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@ public boolean equals(Object o) {
}
AnnotatedType that = (AnnotatedType) o;

if (type != that.type) {
if ((type == null && that.type != null) || (type != null && that.type == null)) {
return false;
}

if (type != null && that.type != null && !type.equals(that.type)) {
return false;
}
return Arrays.equals(this.ctxAnnotations, that.ctxAnnotations);
Expand Down

0 comments on commit 89c53e4

Please # to comment.