Migrate to Java 7

MSAL

This recipe will apply changes commonly needed when upgrading to Java 7. This recipe will also replace deprecated API with equivalents when there is a clear migration strategy.

org.openrewrite.java.migrate.UpgradeToJava7
mod run . --recipe=org.openrewrite.java.migrate.UpgradeToJava7

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. Migrate to Java 6
  2. Add missing JDBC interface methods
  3. Rename final method declarations getSuppressed() and addSuppressed(Throwable exception) in classes that extend Throwable
  4. Replace Math.random() with ThreadLocalRandom.current().nextDouble()
  5. Migrate Bouncy Castle to jdk15to18 for Java < 8