Skip to content

AutoFactory 1.1.0

Compare
Choose a tag to compare
@eamonnmcmanus eamonnmcmanus released this 20 Nov 23:18
· 212 commits to main since this release
  • AutoFactory now recognizes and generates both javax.inject and jakarta.inject. If jakarta.inject is on the classpath then it will be used, and otherwise javax.inject. A new compiler option -Acom.google.auto.factory.InjectApi can be set to either javax or jakarta 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 both PARAMETER and TYPE_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)