Skip to content

Ensure .hashCode and .equals are both provided.#2166

Merged
afs merged 1 commit intoapache:mainfrom
afs:hashcode-equals-fixes
Jan 12, 2024
Merged

Ensure .hashCode and .equals are both provided.#2166
afs merged 1 commit intoapache:mainfrom
afs:hashcode-equals-fixes

Conversation

@afs
Copy link
Member

@afs afs commented Jan 11, 2024

Inspired by #2164, I tried some more IDE warning settings.

This PR is the result of missing hashCode() when `.equals() is defined.

Either it is autogenerated hashcod/equasl from Eclipse, or writing a hashCode function that agrees with the existing equals.

The fact some of the changes are in the code of Xerces datatype code copied into Jena is a little surprising.


By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the Contributor's Agreement.

@afs afs mentioned this pull request Jan 11, 2024
@afs afs merged commit ae5514d into apache:main Jan 12, 2024
@afs afs deleted the hashcode-equals-fixes branch January 12, 2024 12:20
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.

3 participants