JakeWharton / u2020

A sample Android app which showcases advanced usage of Dagger among other open source libraries.
https://www.youtube.com/watch?v=0XHx9jtxIxU
Apache License 2.0
5.68k stars 930 forks source link

Replace JsonSerializer/Deserializer with TypeAdapter. #148

Closed chris-horner closed 9 years ago

chris-horner commented 9 years ago

From the JsonSerializer javadoc

New applications should prefer TypeAdapter, whose streaming API is more efficient than this interface's tree API.

I don't think the code is any harder to understand, and it's nice to demonstrate a more efficient alternative to custom type adapters in Gson.

JakeWharton commented 9 years ago

Thanks!