blob: f6e15e89a5f4223a07a305825c5a3432c017aa2c [file] [log] [blame]
<html>
<body>
Reports on subclasses of <b>java.lang.Comparator</b> which are not
also <b>Serializable</b>. Objects of <b>java.util.TreeMap</b>
or <b>java.util.TreeSet</b> will become non-<b>Serializable</b>
if instantiated with such <b>Comparator</b>s. This can result in unexpected and difficult-to-diagnose
bugs. Since subclasses of <b>java.lang.Comparator</b> are often stateless, simply marking
them <b>Serializable</b> is a small cost to avoid such issues.
<!-- tooltip end -->
<p>
</body>
</html>