gson-comments/gson/src
Marcono1234 a92bbf849c
Improve TreeTypeAdapter thread-safety (#1976)
* Improve TreeTypeAdapter thread-safety

Gson claims to be thread-safe so TreeTypeAdapter.delegate() might be
called by multiple threads. To guarantee that each thread sees a fully
constructed `delegate`, the field has to be `volatile`.

* Improve TreeTypeAdapter thread race comment
2021-11-01 15:13:08 -07:00
..
main Improve TreeTypeAdapter thread-safety (#1976) 2021-11-01 15:13:08 -07:00
test Fix Gson.newJsonWriter ignoring lenient and HTML-safe setting (#1989) 2021-11-01 15:11:10 -07:00