tern.java
tern.java copied to clipboard
equals(Object obj)" and "hashCode()" should be overridden in pairs
This pull request is focused on resolving occurrences of Sonar rule squid:S1206 - “ equals(Object obj)" and "hashCode()" should be overridden in pairs ”. You can find more information about the issue here: https://dev.eclipse.org/sonar/rules/show/squid:S1206 Please let me know if you have any questions. Ayman Abdelghany.
@piotrtomiak is it OK for you?
@piotrtomiak is it OK for you?
Sorry, forgot to reply for the first time. Basically, if one cares about overriding hash code method, it should work the same as equals method: a.equals(b) == ( a.hashCode() == b.hashCode()).