gson-comments/gson/src
sembseth 105f28ffe6
BoundField.write memory optimization (#2325)
* BoundField.write memory optimization

Declare and initialize the type adapter used for writing BoundFields outside of the anonymous class to ensure that a new TypeAdapterRuntimeTypeWrapper is not constructed each time a BoundField is written. This type adapter is only initialized if the BoundField will be used for serialization.

* Avoid confusing nullness-analysis tools
2023-02-28 14:46:05 -08:00
..
main BoundField.write memory optimization (#2325) 2023-02-28 14:46:05 -08:00
test Fix a couple of types in tests. (#2317) 2023-02-15 05:53:29 -08:00