Skip to content

Equality of DefaultConnection and related objects #2986

Answered by bbakerman
pgr0ss asked this question in Q&A
Discussion options

You must be logged in to vote

However, one complication is that most of these objects don't seem to implement equals, which makes them more challenging to compare, especially in tests. Is there a reason for this?

The code in the Relay package is old and early and honestly not out best. There is a no reason for not having .equals / .hashcode other than its not our best quality code.

if you could take a stab at contributing it would help us, you and others. Open Source FTW!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pgr0ss
Comment options

Answer selected by pgr0ss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants