Change factory method return types to reflect their resolved return type
Apache 2.0As of Micronaut 3.x It is no longer possible to inject the internal implementation type from beans produced via factories. Factory method return types are changed to reflect the resolved return type if the method returns a single non-null type that does not match the method declaration return type.
org. openrewrite. java. micronaut. SubclassesReturnedFromFactoriesNotInjectablemod run . --recipe= org. openrewrite. java. micronaut. SubclassesReturnedFromFactoriesNotInjectableInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.