Big start into ClassAdapter.

This borrows from Gson's UnsafeAllocator. I didn't actually
borrow much from Gson's reflective type adapter, but I'll need
to review that in follow up to see if I forgot anything that
Gson covers.

Most interesting design decision here is that fields are
serialized in alphabetical order. Also we're pretty nice
around detecting field collisiosn and failing early.
This commit is contained in:
jwilson
2015-03-22 23:21:42 -04:00
parent 1b9658dca3
commit 08becc119a
5 changed files with 708 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.6</java.version>
<java.version>1.7</java.version>
<!-- Dependencies -->
<okio.version>1.1.0</okio.version>