Use String.toFloat() instead of java.lang.Float.parseFloat(s)
ProprietaryJava-idiom Float.parseFloat(s) migrates to the Kotlin extension s.toFloat().
org. openrewrite. kotlin. migrate. UseStringToFloat$KtRecipemod 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.