Skip to content

Commit

Permalink
Improve Member#hashCode implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment committed Jul 25, 2023
1 parent 3ff6782 commit 44cfcd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ public boolean equals(Object o)
@Override
public int hashCode()
{
return (guild.getIdLong() + user.getId()).hashCode();
return Objects.hash(guild.getIdLong(), user.getIdLong());
}

@Override
Expand Down

0 comments on commit 44cfcd2

Please sign in to comment.