Add serialVersionUID to a Serializable class when missing

MSAL

A serialVersionUID field is strongly recommended in all Serializable classes. If this is not defined on a Serializable class, the compiler will generate this value. If a change is later made to the class, the generated value will change and attempts to deserialize the class will fail. Explicitly declaring this field gives you control over binary compatibility across versions.

org.openrewrite.staticanalysis.AddSerialVersionUidToSerializable

Optional

Value of the added serial version UID.

mod run . --recipe=org.openrewrite.staticanalysis.AddSerialVersionUidToSerializable

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