Replace Char#toInt() with Char#code

Apache 2.0

Replace the usage of the deprecated Char#toInt() with Char#code. Please ensure that your Kotlin version is 1.5 or later to support the Char#code property. Note that the current implementation does not perform a Kotlin version check.

org.openrewrite.kotlin.cleanup.ReplaceCharToIntWithCode
mod run . --recipe=org.openrewrite.kotlin.cleanup.ReplaceCharToIntWithCode

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.