Skip to content

Commit

Permalink
added default equals and hashcode method to java
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Mar 5, 2025
1 parent 643e379 commit bbc8d7c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/resources/twilio-java/responseModel.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@
}
{{/responseModel}}
{{^responseModel}}
@JsonCreator
private {{apiName}}() {
}
@JsonCreator
private {{apiName}}() {
}
@Override
public boolean equals(Object obj) {
return obj != null && obj.getClass() == this.getClass();
}
@Override
public int hashCode() {
return 1;
}
{{/responseModel}}

0 comments on commit bbc8d7c

Please sign in to comment.