Code Smell 281 - Hashes
TL;DR: Misaligned equals() and hashCode() break collections.
Problems
The least surprise principle violation
Contract violations
Mutable key issues
Duplicate hash codes
Debugging becomes hard
Poor hash distribution
Solutions
Avoid mutab...
maximilianocontieri.com3 min read