java-samples
java-samples copied to clipboard
chore(deps): bump com.google.code.gson:gson from 2.9.1 to 2.13.1 in /drive/snippets/drive_v3
Bumps com.google.code.gson:gson from 2.9.1 to 2.13.1.
Release notes
Sourced from com.google.code.gson:gson's releases.
Gson 2.13.1
What's Changed
- Give FieldNamingStrategy the ability to return multiple String names by
@mfriesenin google/gson#2776- Remove outdated android-proguard-example by
@Gooolerin google/gson#2843- Adjust Troubleshooting Guide ProGuard / R8 section by
@Marcono1234in google/gson#2844- Update dependencies, including the problematic
com.google.errorprone:error_prone_annotations:2.37.0.New Contributors
@mfriesenmade their first contribution in google/gson#2776@Gooolermade their first contribution in google/gson#2843Full Changelog: https://github.com/google/gson/compare/gson-parent-2.13.0...gson-parent-2.13.1
Gson 2.13.0
What's Changed
A bug in deserializing collections has been fixed. Previously, if you did something like this:
gson.fromJson(jsonString, new TypeToken<ImmutableList<String>>() {})then the inferred type would be
ImmutableList<String>, but Gson actually gave you anArrayList<String>. Usually that would lead to an immediateClassCastException, but in some circumstances the code might sometimes succeed despite the wrong type. Now you will see an exception like this:com.google.gson.JsonIOException: Abstract classes can't be instantiated! Adjust the R8 configuration or register an InstanceCreator or a TypeAdapter for this type. Class name: com.google.common.collect.ImmutableListbecause Gson now really is trying to create an
ImmutableListthrough its constructor, but that isn't possible. Either change the requested type (in theTypeToken) toList<String>, or register aTypeAdapterorJsonDeserializerforImmutableList.The internal classes
$Gson$Typesand$Gson$Preconditionshave been renamed to remove the$characters. Since these are internal classes (as signaled not only by the package name but by the$characters), client code should not be affected. If your code was depending on these classes then we suggest making a copy of the class (subject to the license) rather than depending on the new names.Full Changelog: https://github.com/google/gson/compare/gson-parent-2.12.1...gson-parent-2.13.0
Gson 2.12.1
The only difference between this release and 2.12.0 is that OSGi declarations in the Gson jar now specify that
com.google.errorprone.annotationsis an optional dependency, not a required one. If you do not use OSGi then there is no effective change.Gson 2.12.0
What's Changed
The biggest change is that we no longer support Java 7. People who still need to run on Java 7 will need to use an earlier version of Gson.
Other changes:
- Allow registering adapters for
JsonElementagain by@Marcono1234in google/gson#2789- Add nesting limit for
JsonReaderby@Marcono1234in google/gson#2588- Add
@CheckReturnValueto our packages. by@cpovirkin google/gson#2693- Add NullSafeTypeAdapter to prevent TypeAdapter.nullSafe() from returning nested null-safe type adapters (#2729) by
@lyubomyr-shaydarivin google/gson#2731- Support Properties subclasses in GsonTypes.getMapKeyAndValueTypes by
@panic08in google/gson#2758- Enforce rawType to be a Class in ParameterizedTypeImpl by
@panic08in google/gson#2759- Remove
AccessControllerusage for enum adapter by@Marcono1234in google/gson#2704- Fix typeArguments array not being cloned when resolving ParameterizedType with changed owner by
@TBlueFin google/gson#2706
... (truncated)
Changelog
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)
Commits
257bee9[maven-release-plugin] prepare release gson-parent-2.13.163d74b3Bump the maven group with 5 updates (#2851)810e356Add shrinker test for interface implementation being deserialized (#2845)00ae397Adjust Troubleshooting Guide ProGuard / R8 section (#2844)0eec6f3Remove outdated android-proguard-example (#2843)4e65e6aGive FieldNamingStrategy the ability to return multiple String names (#2776)6010131[maven-release-plugin] prepare for next development iterationbfe0fd5[maven-release-plugin] prepare release gson-parent-2.13.06ed64caadd multi-catch support to the code base (#2841)0074376Bump the maven group with 3 updates (#2840)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)