Gson v2.9.0 Release Notes
-
๐ The minimum supported Java version changes from 6 to 7.
- ๐ Change target Java version to 7 (#2043)
- ๐ Put
module-info.class
into Multi-Release JAR folder (#2013) - ๐ Improve error message when abstract class cannot be constructed (#1814)
- ๐ Support EnumMap deserialization (#2071)
- โ Add LazilyParsedNumber default adapter (#2060)
- ๐ Fix JsonReader.hasNext() returning true at end of document (#2061)
- โ Remove Gradle build support. Build script was outdated and not actively maintained anymore (#2063)
- โ Add
GsonBuilder.disableJdkUnsafe()
(#1904) - Add
UPPER_CASE_WITH_UNDERSCORES
in FieldNamingPolicy (#2024) - ๐ Fix failing to serialize Collection or Map with inaccessible constructor (#1902)
- ๐ Improve TreeTypeAdapter thread-safety (#1976)
- ๐ Fix
Gson.newJsonWriter
ignoring lenient and HTML-safe setting (#1989) - โ Delete unused LinkedHashTreeMap (#1992)
- 0๏ธโฃ Make default adapters stricter; improve exception messages (#2000)
- ๐ Fix
FieldNamingPolicy.upperCaseFirstLetter
uppercasing non-letter (#2004)