AutoFactory 1.1.0
eamonnmcmanus
released this
20 Nov 23:18
·
208 commits
to main
since this release
- AutoFactory now recognizes and generates both
javax.inject
andjakarta.inject
. Ifjakarta.inject
is on the classpath then it will be used, and otherwisejavax.inject
. A new compiler option-Acom.google.auto.factory.InjectApi
can be set to eitherjavax
orjakarta
to force the use of one or the other. (67772b2) - There is now a way to add annotations to generated AutoFactory classes. See the javadoc for
@AutoFactory.AnnotationsToApply
. (b2a1c08) - The exception message for a null value now indicates not only which number argument it is but also how many arguments there are in total. This may lead to a small increase in code size. (ab6c7bf)
- AutoFactory now correctly handles the case where a parameter annotation has
@Target
with bothPARAMETER
andTYPE_USE
. (9d455fa) - When a requested supertype of the generated factory class has a type parameter, the generated class now always has the same parameter. (206b673)
- Better error message when detecting duplicate parameters (59ec5e6)