Find non-serializable fields of a Serializable class
ProprietaryMarks a field of a Serializable class whose type is not serializable, so serializing the instance throws a NotSerializableException. Make the type serializable or the field transient. Fields typed as an interface, abstract class, Object or type variable are skipped, and so are injected fields (@Inject, @Resource, @EJB), servlets, enum fields and classes that write their own serialized form. Skips test sources.
io. moderne. staticanalysis. FindNonSerializableFieldmod run . --recipe= io. moderne. staticanalysis. FindNonSerializableFieldInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.