Remove Thread.countStackFrames() method

MSAL

Thread.countStackFrames() has been removed in Java SE 14 and has been changed in this release to unconditionally throw UnsupportedOperationException. This recipe removes the usage of this method in your application as long as the method is not assigned to a variable. For more information on the Java SE 14 deprecation of this method, see https://bugs.java.com/bugdatabase/view_bug?bug_id=8205132.

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

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.Thread countStackFrames()