Inspectopedia Help

Non-serializable class with 'serialVersionUID'

Reports non-Serializable classes that define a serialVersionUID field. A serialVersionUID field in that context normally indicates an error because the field will be ignored and the class will not be serialized.


public class IWantToSerializeThis { private static final long serialVersionUID = 2669293150219020249L; }

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.16690

Last modified: 29 April 2024