Inspectopedia Help

Externalizable class with 'readObject()' or 'writeObject()'

Reports Externalizable classes that define readObject() or writeObject() methods. These methods are not called for serialization of Externalizable objects.


abstract class Crucial implements Externalizable { int value; private void readObject(ObjectInputStream in) { value = in.readInt(); } }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Java, 233.SNAPSHOT

Last modified: 13 July 2023