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