Find non-serializable fields of a Serializable class

Proprietary

Marks 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.FindNonSerializableField
mod run . --recipe=io.moderne.staticanalysis.FindNonSerializableField

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.