Find @Inject lateinit var field injection

Proprietary

The JSR-330 @Inject annotation has the same drawbacks as @Autowired for field injection: hidden dependencies, harder testing, mutable state. Migrate to constructor injection.

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