Use String.toBoolean() instead of java.lang.Boolean.parseBoolean(s)

Proprietary

Java-idiom Boolean.parseBoolean(s) migrates to the Kotlin extension s.toBoolean(); for strict parsing that throws on non-true/false, use s.toBooleanStrict() instead.

org.openrewrite.kotlin.migrate.UseStringToBoolean$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.migrate.UseStringToBoolean$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.