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.
Example:
public class IWantToSerializeThis {
private static final long serialVersionUID = 2669293150219020249L;
}
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023