Skip to content

Commit

Permalink
Add java constructor, default equal and hashcode methods on no respon…
Browse files Browse the repository at this point in the history
…se (#639)
  • Loading branch information
sbansla authored Mar 5, 2025
1 parent 1a49575 commit 38396ff
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/resources/twilio-java/responseModel.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,16 @@
return Objects.hash({{#vars}}{{{name}}}{{^-last}}, {{/-last}}{{/vars}});
}
{{/responseModel}}
{{^responseModel}}
@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 38396ff

Please sign in to comment.