Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno committed Jan 18, 2025
1 parent 2ee5d26 commit 07ca3b6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ public boolean equals(Object obj) {
return true;
}

if (!(obj instanceof ConsumerInstanceId)) {
if (!(obj instanceof ConsumerInstanceId other)) {
return false;
}

ConsumerInstanceId other = (ConsumerInstanceId) obj;

if (groupId != null && !groupId.equals(other.groupId)) {
return false;
}
Expand Down

0 comments on commit 07ca3b6

Please sign in to comment.