Serializable
and are declared inside a class that doesn't implement Serializable
.
Such classes are unlikely to serialize correctly due to implicit references to the outer class.
Example:
class A {
class Main implements Serializable {
}
}
Use the following options to configure the inspection:
Serializable
from a superclass but are not intended for serialization.
Serializable
anonymous classes.