Use String.toFloat() instead of java.lang.Float.parseFloat(s)

Proprietary

Java-idiom Float.parseFloat(s) migrates to the Kotlin extension s.toFloat().

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