Find virtual thread opportunities

MSAL

Find opportunities to convert existing code to use virtual threads.

org.openrewrite.java.migrate.lang.FindVirtualThreadOpportunities
mod run . --recipe=org.openrewrite.java.migrate.lang.FindVirtualThreadOpportunities

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. Find implementing classes java.lang.Thread
  2. Find method usages java.lang.Thread#<constructor>(..)
  3. Find non-virtual ExecutorService creation