Find Kotlin classes implementing java.io.Serializable

Proprietary

java.io.Serializable is reflection-based and slow on Android — it allocates substantially more than Parcelable and pulls in field-by-field reflection at deserialize time. For inter-component transport, prefer @Parcelize (kotlin-parcelize) or kotlinx.serialization.

org.openrewrite.kotlin.android.FindSerializableUsage$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindSerializableUsage$KtRecipe'

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