Inspectopedia
 
2024.3

'serialPersistentFields' field not declared 'private static final ObjectStreamField[]'

Warning
New
Last modified: 03 December 2024

Reports Serializable classes whose serialPersistentFields field is not declared as private static final ObjectStreamField[].

If a serialPersistentFields field is not declared with those modifiers, the serialization behavior will be as if the field was not declared at all.

Example: