Scala : Only one of method Equals() and GetHashCode() defined
Overview
Only one of the equals() and hashCode() methods is defined in the class. This violates the Java conventions and may lead to incorrect behavior when working with collections.
Equals() and hashCode() methods are defined in class Object. Class Object is the root of the class hierarchy. All objects implement the methods of this class. And If you override one, then you should override the other, otherwise, equal (in the sense of equals()) objects may have different values for hashCode().
DerScanner Severity Score
Check your Scala code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
