Find non-virtual ExecutorService creation
MSALFind all places where static java.util.concurrent.Executors method creates a non-virtual java.util.concurrent.ExecutorService. This recipe can be used to search for ExecutorService that can be replaced by a virtual thread executor.
org. openrewrite. java. migrate. lang. FindNonVirtualExecutorsmod run . --recipe= org. openrewrite. java. migrate. lang. FindNonVirtualExecutorsInstall 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.
- Find method usages
java.util.concurrent.Executors#newCachedThreadPool(..) - Find method usages
java.util.concurrent.Executors#newFixedThreadPool(..) - Find method usages
java.util.concurrent.Executors#newSingleThreadExecutor(..) - Find method usages
java.util.concurrent.Executors#newWorkStealingPool(..) - Find method usages
java.util.concurrent.Executors#newScheduledThreadPool(..) - Find method usages
java.util.concurrent.Executors#newSingleThreadScheduledExecutor(..)