Pattern: Missing override for equals()
or hashCode()
Issue: -
Defining either equals()
or hashCode()
in a class without defining the other is a known source of bugs. Usually, when you define one, you should also define the other.
<check enabled="true" class="org.scalastyle.scalariform.EqualsHashCodeChecker" level="warning"/>