Remove Runtime.traceInstructions(boolean) and Runtime.traceMethodCalls methods

MSAL

The traceInstructions and traceMethodCalls methods in java.lang.Runtime were deprecated in Java SE 9 and are no longer available in Java SE 13 and later. The recipe removes the invocations of these methods since the method invocations do nothing functionally.

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

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. Remove method invocations java.lang.Runtime traceInstructions(boolean)
  2. Remove method invocations java.lang.Runtime traceMethodCalls(boolean)