Files
openide/java/java-impl/resources/inspectionDescriptions/SerializableInnerClassWithNonSerializableOuterClass.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

28 lines
803 B
HTML

<html>
<body>
Reports non-static inner classes that implement <code>Serializable</code>
and are declared inside a class that doesn't implement <code>Serializable</code>.
<p>
Such classes are unlikely to serialize correctly due to implicit references to the outer class.
</p>
<p><b>Example:</b></p>
<pre><code>
class A {
class Main implements Serializable {
}
}
</code></pre>
<!-- tooltip end -->
<p>Use the following options to configure the inspection:</p>
<ul>
<li>
List classes whose inheritors should not be reported by this inspection.
This is meant for classes that inherit
<code>Serializable</code> from a superclass but are not intended for serialization.
</li>
<li>
Whether to ignore <code>Serializable</code> anonymous classes.
</li>
</ul>
</body>
</html>