The terminally deprecated method Thread.countStackFrames has been changed in this release to unconditionally throw
UnsupportedOperationException. Remove the usage of this method in your application as it will now unconditionally
throw an exception and will be removed in a future release.
This rule has an automated fix. Copy the custom configuration to your application build file to enable the fix automation.
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 Degrade Thread.countStackFrames() to throw UOE.