Skip to content

Commit

Permalink
use Object.equals
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Farr <[email protected]>
Signed-off-by: Miguel Vilá <[email protected]>
  • Loading branch information
miguel-vila and Xtansia authored Sep 20, 2024
1 parent 3e1dfa8 commit 93edabe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
if(this.{{name}}() != other.{{name}}()) {
{{/isUnboxedPrimitive}}
{{^isUnboxedPrimitive}}
if(!this.{{name}}().equals(other.{{name}}())) {
if(!Objects.equals(this.{{name}}, other.{{name}})) {
{{/isUnboxedPrimitive}}
return false;
}
Expand Down

0 comments on commit 93edabe

Please sign in to comment.