fix(deps): bump com.google.code.gson:gson from 2.13.2 to 2.14.0
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(about 2 months ago)
(30 days ago)
dependencies java
Bumps com.google.code.gson:gson from 2.13.2 to 2.14.0.
Release notes
Sourced from com.google.code.gson:gson's releases.
Gson 2.14.0
What's Changed
Add type adapters for
java.timeclasses by@eamonnmcmanusin google/gson#2948When the
java.timeAPI is available, Gson automatically can read and write instances of classes likeInstantandDuration. The format it uses essentially freezes the JSON representation thatReflectiveTypeAdapterFactoryestablished by default, based on the private fields ofjava.timeclasses. That's not a great representation, but it is understandable. Changing it to anything else would break compatibility with systems that are expecting the current format.With this change, Gson no longer tries to access private fields of these classes using reflection. So it is no longer necessary to run with
--add-opensfor these classes on recent JDKs.Remove
com.google.gson.graphby@eamonnmcmanusin google/gson#2990.This package was not part of any released artifact and depended on Gson internals in potentially problematic ways.
Validate that strings being parsed as integers consist of ASCII characters by
@eamonnmcmanusin google/gson#2995Previously, strings could contain non-ASCII Unicode digits and still be parsed as integers. That's inconsistent with how JSON numbers are treated.
Fix duplicate key detection when first value is null by
@andrewstellmanin google/gson#3006This could potentially break code that was relying on the incorrect behaviour. For example, this JSON string was previously accepted but will no longer be:
{"foo": null, "foo": bar}.Remove
Serializablefrom internalTypeimplementation classes. by@eamonnmcmanusin google/gson#3011The nested classes
ParameterizedTypeImpl,GenericArrayTypeImpl, andWildcardTypeImplinGsonTypesare implementations of the corresponding types (withoutImpl) injava.lang.reflect. For some reason, they were serializable, even though thejava.lang.reflectimplementations are not. Having unnecessarily serializable classes could conceivably have been a security problem if they were part of a larger exploit using serialization. (We do not consider this a likely scenario and do not suggest that you need to update Gson just to get this change.)Add
LegacyProtoTypeAdapterFactory. by@eamonnmcmanusin google/gson#3014This is not part of any released artifact, but may be of use when trying to fix code that is currently accessing the internals of protobuf classes via reflection.
Make AppendableWriter do flush and close if delegation object supports by
@MukjepScarletin google/gson#2925Other less visible changes
- Add default capacity to EnumTypeAdapter maps by
@MukjepScarletin google/gson#2959- refactor: move derived adapters from Gson to TypeAdapters by
@MukjepScarletin google/gson#2951- Optimize
new Gson()by@MukjepScarletin google/gson#2864New Contributors
@ThirdGoddessmade their first contribution in google/gson#2944@lmj798made their first contribution in google/gson#2988@Eng-YasminKotbmade their first contribution in google/gson#3005@andrewstellmanmade their first contribution in google/gson#3006Full Changelog: https://github.com/google/gson/compare/gson-parent-2.13.2...gson-parent-2.14.0
Commits
3ff35d6[maven-release-plugin] prepare release gson-parent-2.14.0a3024fdBump the maven group with 13 updates (#3002)5689ffeBump the github-actions group across 1 directory with 3 updates (#3018)48db33cAddLegacyProtoTypeAdapterFactory. (#3014)53d703eUpdate outdated comment regarding serializable types (#3012)0189b72RemoveSerializablefrom internalTypeimplementation classes. (#3011)f4d371dFix duplicate key detection when first value is null (#3006)27d9ba1Fix typo in README (JPMS dependencies section) (#3005)1fa9b7aValidate that strings being parsed as integers consist of ASCII characters (#...b7d5954Add iterator fail-fast tests for LinkedTreeMap.clear() (#2992)- Additional commits viewable in compare view
Package Dependencies
com.google.code.gson:gson
maven
2.13.2 → 2.14.0
Minor
Technical Details
| ID: | 15810105 |
| UUID: | 4321630575 |
| Node ID: | PR_kwDOCTce4M7VQ_bG |
| Host: | GitHub |
| Repository: | microsoftgraph/msgraph-sdk-java-core |