Sourced from com.google.code.gson:gson's releases.
Gson 2.10.1
This is technically a minor release rather than a patch release because there is one small API change: a new
JsonObject.isEmpty()method.What's Changed: User-Visible Changes
- Added JsonObject method isEmpty() by
@dhoardin google/gson#2233- Fix non-threadsafe creation of adapter for type with cyclic dependency by
@Marcono1234in google/gson#1832- Remove EOFException special casing of JsonStreamParser.next() by
@Marcono1234in google/gson#2281- Improve exception message for duplicate field names by
@Marcono1234in google/gson#2251- Fix the javadoc of JsonDeserializer.deserialize() by
@MaicolAntaliin google/gson#2243- Bump os-maven-plugin from 1.7.0 to 1.7.1 by
@dependabotin google/gson#2235- Bump jackson-databind from 2.13.4.2 to 2.14.0 by
@dependabotin google/gson#2234- Bump maven-release-plugin from 3.0.0-M6 to 3.0.0-M7 by
@dependabotin google/gson#2232- Bump japicmp-maven-plugin from 0.16.0 to 0.17.1 by
@dependabotin google/gson#2238- Bump jackson-databind from 2.14.0 to 2.14.1 by
@dependabotin google/gson#2241- Bump bnd-maven-plugin from 6.3.1 to 6.4.0 by
@dependabotin google/gson#2245Site Documentation and Maintenance Changes (these were already visible)
- Add troubleshooting guide by
@Marcono1234in google/gson#2285- Replace custom user guide header anchors by
@Marcono1234in google/gson#2289- Improve variable names in user guide by
@Marcono1234in google/gson#2290- Add 2.10 changes to CHANGELOG; minor release follow-ups by
@Marcono1234in google/gson#2229- Mention in CHANGELOG that GitHub Releases are used in the future by
@Marcono1234in google/gson#2230- GitHub Workflows security hardening by
@sashashurain google/gson#2274Other Changes
- Making consistent prefixs in PerformanceTest by
@CirQin google/gson#1760- Adjust version numbers and a test to conform to the SemVer spec. by
@eamonnmcmanusin google/gson#2237- Remove covered condition in JsonNull.equals() by
@MaicolAntaliin google/gson#2271- Remove the
finalkeyword fromprivatemethod by@MaicolAntaliin google/gson#2276- Code cleanup by
@MaicolAntaliin google/gson#2282- Unnecessary unboxing at JsonPrimitive.getAsBoolean() by
@MaicolAntaliin google/gson#2277- Rewrite the
testParsingDatesFormattedWithSystemLocale(), Fix #2199 by@MaicolAntaliin google/gson#2287- Port tests from JUnit 3 to JUnit 4 by
@MaicolAntaliin google/gson#2294New Contributors (thanks!)
@CirQmade their first contribution in google/gson#1760@dhoardmade their first contribution in google/gson#2233@MaicolAntalimade their first contribution in google/gson#2243@sashashuramade their first contribution in google/gson#2274Full Changelog: https://github.com/google/gson/compare/gson-parent-2.10...gson-parent-2.10.1
Gson 2.10
Most important changes
... (truncated)
Sourced from com.google.code.gson:gson's changelog.
Change Log
The change log for versions newer than 2.10 is available only on the GitHub Releases page.
Version 2.10
- Support for serializing and deserializing Java records, on Java ≥ 16. (google/gson#2201)
- Add
JsonArray.asListandJsonObject.asMapview methods (google/gson#2225)- Fix
TypeAdapterRuntimeTypeWrappernot detecting reflectiveTreeTypeAdapterandFutureTypeAdapter(google/gson#1787)- Improve
JsonReader.skipValue()(google/gson#2062)- Perform numeric conversion for primitive numeric type adapters (google/gson#2158)
- Add
Gson.fromJson(..., TypeToken)overloads (google/gson#1700)- Fix changes to
GsonBuilderaffecting existingGsoninstances (google/gson#1815)- Make
JsonElementconversion methods more consistent and fix javadoc (google/gson#2178)- Throw
UnsupportedOperationExceptionwhenJsonWriter.jsonValueis not supported (google/gson#1651)- Disallow
JsonObjectEntry.setValue(null)(google/gson#2167)- Fix
TypeAdapter.toJsonthrowing AssertionError for custom IOException (google/gson#2172)- Convert null to JsonNull for
JsonArray.set(google/gson#2170)- Fixed nullSafe usage. (google/gson#1555)
- Validate
TypeToken.getParameterizedarguments (google/gson#2166)- Fix #1702: Gson.toJson creates CharSequence which does not implement toString (google/gson#1703)
- Prefer existing adapter for concurrent
Gson.getAdaptercalls (google/gson#2153)- Improve
ArrayTypeAdapterforObject[](google/gson#1716)- Improve
AppendableWriterperformance (google/gson#1706)Version 2.9.1
- Make
ObjectandJsonElementdeserialization iterative rather than recursive (google/gson#1912)- Added parsing support for enum that has overridden toString() method (google/gson#1950)
- Removed support for building Gson with Gradle (google/gson#2081)
- Removed obsolete
codegenhierarchy (google/gson#2099)- Add support for reflection access filter (google/gson#1905)
- Improve
TypeTokencreation validation (google/gson#2072)- Add explicit support for
floatinJsonWriter(google/gson#2130, google/gson#2132)- Fail when parsing invalid local date (google/gson#2134)
Also many small improvements to javadoc.
2ce6a61
[maven-release-plugin] prepare release gson-parent-2.10.11a2170b
Port tests from JUnit 3 to JUnit 4 (#2294)4aaf138
Improve variable names in user guide (#2290)a19d53f
Replace custom user guide header anchors (#2289)6c12ded
Rewrite the testParsingDatesFormattedWithSystemLocale(),
Fix #2199 (#2287)f2f53fb
Add troubleshooting guide (#2285)f63a1b8
Remove EOFException special casing of JsonStreamParser.next() (#2281)6c3cf22
Unnecessary unboxing at JsonPrimitive.getAsBoolean() (#2277)0a42c31
Code cleanup (#2282)28affcb
Remove the final keyword from private method
(#2276)