Files
openide/java/java-impl/resources/inspectionDescriptions/NonSerializableWithSerializationMethods.html
2025-02-05 04:43:28 +00:00

15 lines
423 B
HTML

<html>
<body>
Reports non-<code>Serializable</code> classes that define <code>readObject()</code>
or <code>writeObject()</code> methods. Such methods in that context normally indicate an error.
<p><b>Example:</b></p>
<pre><code>
public class SampleClass {
private void readObject(ObjectInputStream str) {}
private void writeObject(ObjectOutputStream str) {}
}
</code></pre>
<!-- tooltip end -->
</body>
</html>