Use String.toLong() instead of java.lang.Long.parseLong(s)
ProprietaryJava-idiom Long.parseLong(s) migrates to the Kotlin extension s.toLong().
org. openrewrite. kotlin. migrate. UseStringToLong$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseStringToLong$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.