Find Handler() constructor calls without an explicit Looper

Proprietary

The zero-arg Handler constructor was deprecated in API 30 because it implicitly captures the current thread's looper — a footgun when called from a background thread. Always pass an explicit Looper, e.g. Handler(Looper.getMainLooper()).

org.openrewrite.kotlin.android.FindBareHandlerConstructor$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindBareHandlerConstructor$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.