Convert field injection to constructor injection
ProprietaryConverts @Autowired field injection to constructor injection pattern. For non-final classes, adds both a no-args constructor and the autowired constructor to maintain compatibility with extending classes. Moves @Qualifier annotations to constructor parameters.
io. moderne. java. spring. boot. FieldToConstructorInjectionmod run . --recipe= io. moderne. java. spring. boot. FieldToConstructorInjectionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.