Use String.toLong(radix) instead of Long.parseLong(s, radix)
Proprietaryjava.lang.Long.parseLong(s, radix) is JVM-only; the Kotlin extension s.toLong(radix) is multiplatform and reads as a receiver call.
org. openrewrite. kotlin. migrate. UseStringToLongWithRadix$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseStringToLongWithRadix$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.