Use Char.digitToInt(radix) instead of Character.digit(c, radix)
ProprietaryCharacter.digit(c, radix) returns -1 for non-digits; the Kotlin extension c.digitToInt(radix) throws IllegalArgumentException instead. Use c.digitToIntOrNull(radix) if the JVM null-on-failure semantic is required.
org. openrewrite. kotlin. migrate. UseCharDigitToInt$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseCharDigitToInt$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.