Find @Inject lateinit var field injection
ProprietaryThe 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$KtRecipemod 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.