Replace Char#toInt() with Char#code
Apache 2.0Replace 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. ReplaceCharToIntWithCodemod run . --recipe= org. openrewrite. kotlin. cleanup. ReplaceCharToIntWithCodeInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.