rharter / auto-value-gson

AutoValue Extension to add Gson De/Serializer support
Apache License 2.0
603 stars 103 forks source link

`@Nullable` doesn't work correctly with nested types #261

Closed eamonnmcmanus closed 3 years ago

eamonnmcmanus commented 3 years ago

If the @AutoValue class has a property like this:

  abstract Map.@Nullable Entry<?,?> bar();

then auto-value-gson incorrectly generates a constructor like this:

  Foo(@Nullable Map.Entry<?,?> bar) {...}

It needs to use the same Map.@Nullable Entry syntax.

I am preparing a PR to fix this.