Replace DropwizardAppExtension.getApplication() with @Autowired application field
ProprietaryReplaces calls to DropwizardAppExtension.getApplication() with a reference to a new @Autowired <AppType> application field on the enclosing class. The application type is extracted from the constructor's first argument (new DropwizardAppExtension<>(TestApp.class, ...)); skips the rewrite if not resolvable. Nested application classes declared in the same source file are supported.
io. moderne. java. dropwizard. boot. test. ReplaceDropwizardApplicationWithAutowiredmod run . --recipe= io. moderne. java. dropwizard. boot. test. ReplaceDropwizardApplicationWithAutowiredInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.