Skip to content

Commit

Permalink
numberCouple
Browse files Browse the repository at this point in the history
  • Loading branch information
Alextopher committed Sep 29, 2024
1 parent 560dfa5 commit 6574837
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ public void set(T first, T second) {

@Override
public boolean equals(Object obj) {
if (!(obj instanceof NumberCouple<?> couple)) {
return false;
}

return couple.first.equals(first) && couple.second.equals(second);
return obj instanceof NumberCouple<?> couple
&& couple.first.equals(first)
&& couple.second.equals(second);
}

@JsonIgnore
Expand Down

0 comments on commit 6574837

Please sign in to comment.