Replace deprecated String case conversions

Proprietary

Replace String.toLowerCase() with String.lowercase() and String.toUpperCase() with String.uppercase(). These were deprecated in Kotlin 1.5 and become errors in Kotlin 2.1.

org.openrewrite.kotlin.migrate.ReplaceDeprecatedStringCaseConversions
mod run . --recipe=org.openrewrite.kotlin.migrate.ReplaceDeprecatedStringCaseConversions

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

Recipe list

It runs these recipes, in this order.

  1. Change method name kotlin.text.StringsKt toLowerCase(..) to lowercase
  2. Change method name kotlin.text.StringsKt toUpperCase(..) to uppercase