Use Char.code.toByte() instead of Char.toByte()
ProprietaryChar.toByte() was deprecated in Kotlin 1.5 in favor of going through Char.code.
org. openrewrite. kotlin. migrate. UseCharCodeAsByte$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. migrate. UseCharCodeAsByte$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.