1.2 KiB
1.2 KiB
Change Log
Version 2.5
2015-11-24
- Updated minimum JDK version to 1.6
- Improved Date Deserialization by accepting many date formats
- Added support for
java.util.Currency
,AtomicLong
,AtomicLongArray
,AtomicInteger
,AtomicIntegerArray
,AtomicBoolean
- Improved debugging information when some exceptions are thrown
Version 2.4
2015-10-04
- Drop
IOException
fromTypeAdapter.toJson()
. This is a binary-compatible change, but may cause compiler errors whereIOExceptions
are being caught but no longer thrown. The correct fix for this problem is to remove the unnecessarycatch
clause. - New:
Gson.newJsonWriter
method returns configuredJsonWriter
instances. - New:
@SerializedName
now works with AutoValue’s abstract property methods. - New:
@SerializedName
permits alternate names when deserializing. - New:
JsonWriter#jsonValue
writes raw JSON values. - New: APIs to add primitives directly to
JsonArray
instances. - New: ISO 8601 date type adapter. Find this in extras.
- Fix:
FieldNamingPolicy
now works properly when running on a device with a Turkish locale.