Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare equals and hashCode in Socket classes for use in Java maps #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Declare equals and hashCode in Socket classes for use in Java maps #4

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 2, 2017

In order to correctly compare and store Socket objects in maps, equals and hashCode should be overridden to ensure no duplications occur. This change will create those methods in ServerSocket, ClientSocket; and the parent abstract class Socket.

@ghost ghost changed the title Declare equals a nd hashCode in Socket classes for use in Java maps Declare equals and hashCode in Socket classes for use in Java maps Nov 2, 2017
@cieldeville
Copy link
Member

Looks fine to me ; I don't see any reason we shouldn't merge this PR over. Thank you for submitting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant