Remove Thread.countStackFrames() method
MSALThread.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. DeprecatedCountStackFramesMethodmod run . --recipe= org. openrewrite. java. migrate. DeprecatedCountStackFramesMethodInstall 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.