Use Int.toString(2) instead of Integer.toBinaryString
ProprietaryInteger.toBinaryString(i) is JVM-only; the multiplatform i.toString(2) produces the same binary text.
org. openrewrite. kotlin. migrate. UseIntToStringBinary$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseIntToStringBinary$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.