New
AutoValue 1.11.0
What's Changed
- AutoValue (including AutoBuilder) no longer bundles the Kotlin metadata API. This may require adding an explicit dependency on
org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.9.0ororg.jetbrains.kotlin:kotlin-metadata-jvm:2.0.0to client code that uses AutoBuilder to build Kotlin classes. The metadata API has changed fromkotlinx.metadatatokotlin.metadata, but AutoBuilder uses reflection to function with either. (260b61ec7) - Support for generating Java 7 code has been removed from AutoValue, AutoAnnotation, and AutoBuilder. You must be on at least Java 8, or an Android version with desugaring that allows it to pass for Java 8. 1.10.4 is the last AutoValue version with support for Java 7. (b9142b7cd)
- AutoBuilder now reports an error if it encounters a
@Nullableprimitive parameter. Primitive types cannot benull, and should not be annotated for nullness. (7cbdeb43b) - Annotations on type parameters, like
abstract @Nullable T foo(), are now better propagated to fields and constructor parameters. (92d881ed9) - The generated
toBuilder()method now saysnew AutoValue_Foo.Builder(this)rather than just , to do the right thing if an extension generates its own subclass of . (324470ba2)