Replace DropwizardAppExtension.getConfiguration() with @Autowired configuration field
ProprietaryReplaces calls to DropwizardAppExtension.getConfiguration() with a reference to a new @Autowired <ConfigType> configuration field on the enclosing class. The configuration type is extracted from DropwizardAppExtension<ConfigType> generic parameter; skips the rewrite if the type is raw, wildcard, or otherwise unresolvable. Retains calls in static or initialization contexts and when receiver identity, type, or constructor overrides cannot be preserved.
io. moderne. java. dropwizard. boot. test. ReplaceDropwizardConfigurationWithAutowiredmod run . --recipe= io. moderne. java. dropwizard. boot. test. ReplaceDropwizardConfigurationWithAutowiredInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.