Use Runtime.Version#interim()

MSAL

Use Runtime.Version#interim() instead of the deprecated Runtime.Version#minor() in Java 10 or higher.

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

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.Runtime.Version minor() to interim