Replace calls to Thread.run() with Thread.start()

MSAL

Replaces calls to Thread.run() with Thread.start(), so that the code runs on a new thread instead of the calling thread.

org.openrewrite.staticanalysis.ReplaceThreadRunWithThreadStart
mod run . --recipe=org.openrewrite.staticanalysis.ReplaceThreadRunWithThreadStart

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. Change method name java.lang.Thread run() to start