Remove Thread.destroy() and Thread.stop(Throwable)

MSAL

The java.lang.Thread.destroy() method was never implemented, and the java.lang.Thread.stop(java.lang.Throwable) method has been unusable since Java SE 8. This recipe removes any usage of these methods from your application.

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

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 destroy()
  2. Remove method invocations java.lang.Thread stop(java.lang.Throwable)