rharter / auto-value-parcel

An Android Parcelable extension for Google's AutoValue.
Apache License 2.0
655 stars 64 forks source link

CheckerFramework's Nullable annotation not supported #155

Closed 0xDCA closed 3 years ago

0xDCA commented 3 years ago

Hello!

Our project uses this annotation, but it doesn't seem to be supported by auto-value-parcel. I imagine it has to do with the annotation applying to the type rather than the method:

abstract @Nullable String exampleString();

Changing it to

@Nullable
abstract String exampleString();

doesn't really make a difference.

Note, however, that this is supported by AutoValue. The effect is the generated Parcelable fails at runtime whenever it writes or parses a null value.