Find Thread(...) constructor calls
ProprietaryEach raw Thread(...) constructor is an unmanaged thread allocation — no pool, no lifecycle. On JVM/Android code that ships with Kotlin coroutines or a structured executor service, these are usually candidates to migrate to a managed scope.
org. openrewrite. kotlin. search. FindThreadConstructors$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. search. FindThreadConstructors$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.