gson-comments/gson/src/main
Marcono1234 88fd6d1390
Improve JsonAdapter documentation and tests (#2442)
* Document how `JsonAdapter` creates adapter instances & add tests

* Extend `JsonAdapter.nullSafe()` documentation

* Improve test for JsonAdapter factory returning null

Existing test `JsonAdapterNullSafeTest` had misleading comments; while it
did in the end detect if null had not been handled correctly, that only
worked because the field `JsonAdapterFactory.recursiveCall` is static and
one test method therefore affected the state of the other test method.
If the test methods were run separately in different test runs, they would
not have detected if null was handled correctly, because the factory would
not have returned null.

* Extend JsonAdapter nullSafe test

* Extend test
2023-08-23 07:09:32 -07:00
..
java Improve JsonAdapter documentation and tests (#2442) 2023-08-23 07:09:32 -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