A workaround for a JDK bug with reading jar resources has been extended so it always applies, rather than just as a fallback. See #1572. (3f69cd255)
If an AutoValue property method is @Nullable, the corresponding field in the generated class will be too. This was already the case for TYPE_USE@Nullable or if the method had @CopyAnnotations, but now @Nullable will be copied in other cases too. (4506804f1)
AutoValue 1.10.3
An "incompatible version" issue with Kotlin compilation has been fixed. See #1574. (b21c7f4fb)
A warning is now produced if a setX method in a Builder or its return type is marked @Nullable. Those methods always return the Builder instance, which is never null. (e5b4b5484)
AutoValue 1.10.2
The constructor parameter names in the class generated by @Memoized no longer add a $. This may require changes to code that was depending on the old names, for example using Error Prone's /* param= */ comments. (4f8dbea8a)
An AutoValue or AutoBuilder property is now allowed to be null if its type is a type variable with a @Nullable bound, like <T extends @Nullable Object>. (1b58cff5e)
Better error message when AutoValue, AutoBuilder, etc give up because of missing types. We now say what the first missing type was. (2e734f605)
AutoBuilder copy-constructors no longer require an exact match between a property and the corresponding constructor parameter. (1440a25e4)
A property of type List<T> can be built by a property builder whose build() method returns List<? extends T>. (8ba4531b8)
Generated builders now include a @Nullable type annotation on appropriate builder fields if one is available. (91d5f32c6)
Updated @AutoAnnotation documentation to say that it isn't needed in Kotlin. (600b4b6d0)
Maven dependencies have been updated, fixing #1532.
AutoValue 1.10.1
Two annotations from org.jetbrains.annotations were accidentally included unshaded in the AutoValue jar. That has been fixed. (6de325b0c)
Fixed an issue when a builder has a property foo with both a getter foo() and a builder fooBuilder(). (3659a0e64)
AutoValue 1.10
AutoBuilder is now stable and supported. (2e44a5327)
AutoBuilder now allows you to omit a Kotlin default parameter when building a Kotlin class. (d2f91bf32)
An @AutoBuilder class can now have @AutoValue.CopyAnnotations so annotations are copied from the class to its generated subclass. (3a15c8834)
The generated AutoBuilder class now has a "copy constructor" if values for the builder properties can be obtained from the built type. (b3b53a344)
AutoBuilder can now be used to build annotation implementations directly. (196c8100d)
Fixed an issue when Serializable and Memoized extensions are used together. (e01968d16)
@AutoAnnotation now has CLASS rather than SOURCE retention, making for better operation with Gradle incremental compilation. (34c3be569)
@AutoAnnotation methods no longer need to be static. This makes it easier to use AutoAnnotation with Kotlin. (cf55dc644)
AutoValue and AutoBuilder builders now use bitmasks to track unset primitive properties, which will typically lead to smaller builder objects and faster build times. (b5d398977)
AutoValue 1.9
The @AutoBuilder annotation documented here is now fully stable and supported. (1f8d7f26)
AutoBuilder now uses annotation defaults when building a call to an @AutoAnnotation method. (fb96c836)
Making a step-builder for AutoValue is now easier because the inherited setters don't need to be restated in the Builder class so that they return Builder. (0820e2e2)
We now handle better the case where an annotation being copied references a missing class. (e0740327)
The order of annotations copied into generated code is now deterministic. (8ad800ed)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps com.google.auto.value:auto-value from 1.8.2 to 1.10.4.
Release notes
Sourced from com.google.auto.value:auto-value's releases.
Commits
12a165f
Set version number for auto-value-parent3f69cd2
Apply a workaround for a JDK bug unconditionally.389b6e7
Bump actions/cache from 3.3.1 to 3.3.2903ffd0
Bump com.google.truth:truth from 1.1.3 to 1.1.5 in /service905bb83
Bump com.google.testing.compile:compile-testing from 0.19 to 0.21.0 in /serviceab0723a
Bump actions/checkout from 3.6.0 to 4.0.01068620
Bump dev.gradleplugins:gradle-test-kit from 8.2.1 to 8.3 in /valuea32053e
Bump actions/checkout from 3.5.3 to 3.6.04506804
Apply@Nullable
to fields in the generated class where appropriate.e67ab8b
Bump kotlin.version from 1.9.0 to 1.9.10 in /valueDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show