Skip to content

AutoValue 1.6.1

Compare
Choose a tag to compare
@eamonnmcmanus eamonnmcmanus released this 07 Jun 00:35
· 936 commits to main since this release
  • Reformatted AutoValue source code using google-java-format. (41d78d2)
  • 9057ae8:
    Allow an Optional property to be set in a builder through a method with a @Nullable parameter.
    NOTE: As a side-effect of this change, a setter for a @Nullable property must have its parameter also marked @Nullable. Previously, if the @Nullable was not a TYPE_USE @Nullable, it was copied from the getter to the parameter of the generated setter implementation. For TYPE_USE @Nullable it was already necessary to mark the setter parameter @Nullable.

  • Clarified how annotation copying works when @CopyAnnotations is not present. (0808746)
  • In @AutoValue class Foo<@Bar T>, copy @Bar to the implementing subclass. (c830cf2)
  • If an @AutoOneOf class has @CopyAnnotations, copy class annotations to the generated subclasses. (521cc94)