blob: 1d7d157980af883749b1984bf55f6e111e5f4075 [file] [log] [blame]
<html>
<body>
Reports classes which implement <b>java.lang.Comparable</b>
which do not override <b>equals()</b>. If <b>equals()</b>
is not overridden, the <b>equals()</b> implementation is not consistent with
the <b>compareTo()</b> implementation. If an object of such a class is added
to a collection such as <b>java.util.SortedSet</b>, this collection will violate
the contract of <b>java.util.Set</b>, which is defined in terms of
<b>equals()</b>.
<!-- tooltip end -->
<p>
</body>
</html>