Use Character#isJavaIdentifierPart(char)

MSAL

Use Character#isJavaIdentifierPart(char) instead of the deprecated Character#isJavaLetterOrDigit(char) in Java 1.1 or higher.

org.openrewrite.java.migrate.lang.MigrateCharacterIsJavaLetterOrDigitToIsJavaIdentifierPart
mod run . --recipe=org.openrewrite.java.migrate.lang.MigrateCharacterIsJavaLetterOrDigitToIsJavaIdentifierPart

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 java.lang.Character isJavaLetterOrDigit(char) to isJavaIdentifierPart