rharter / auto-value-gson

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

Make field name policy support opt-in #230

Closed ZacSweers closed 4 years ago

ZacSweers commented 5 years ago

Resolves #208.

Right now we always generate code that eagerly resolves and uses the input gson's field name policy. This is a lot of overhead for something that isn't always necessary, so this gates it behind a autovaluemoshi.useFieldNamePolicy processor option.