Serializable
must also implement Serializable
or be marked as transient
.Serializable
and for any member fields that are not serializable it will do one of two things:SourceFile
within the same project, that SourceFile will be changed to implement Serializable
.SourceFile
, the field will be marked as transient
markAllAsTransient
is set to true
, this recipe will mark all non-serializable fields as transient
.fullyQualifiedExclusions
will be marked as transient, even if that SourceFile exists in the same project.Serilazable
classes to cut down on the graph of SourceFiles that may be impacted during a recipe run._Boolean
List
Serializable
com.yourorg.FixSerializableFieldsExample
. Here's how you can define and customize such a recipe within your rewrite.yml:com.yourorg.FixSerializableFieldsExample
has been defined activate it in your build file:-Drewrite.activeRecipes=com.yourorg.FixSerializableFieldsExample