gson-comments/gson/src/main
Marcono1234 7ee5ad6cd1
Fix Gson.getDelegateAdapter not working properly for JsonAdapter (#2435)
* Fix `Gson.getDelegateAdapter` not working properly for `JsonAdapter`

* Address review feedback and add comments regarding thread-safety

* Revert InstanceCreator instance validation

* Disallow `null` as `skipPast`

* Avoid `equals` usage in `getDelegateAdapter` & minor other changes

Previously `getDelegateAdapter` called `factories.contains(skipPast)`,
but unlike the other comparisons which check for reference equality,
that would have used the `equals` method.
This could lead to spurious "GSON cannot serialize ..." exceptions
if two factory instances compared equal, but the one provided as
`skipPast` had not been registered yet.
2023-08-22 17:15:18 -07:00
..
java Fix Gson.getDelegateAdapter not working properly for JsonAdapter (#2435) 2023-08-22 17:15:18 -07:00
java-templates/com/google/gson/internal Private constructor (#1324) 2018-05-21 20:04:22 -07:00
resources/META-INF/proguard Update ProGuard default shrinking rules (#2448) 2023-08-22 08:40:31 -07:00