Skip to content

Commit

Permalink
Minor refactoring (#964)
Browse files Browse the repository at this point in the history
* Removed unused method

Signed-off-by: Paolo Patierno <[email protected]>

* Minor refactoring

Signed-off-by: Paolo Patierno <[email protected]>

---------

Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Jan 18, 2025
1 parent 7c3fa61 commit 7ee57e6
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 7ee57e6

Please sign in to comment.