Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve TreeTypeAdapter thread-safety (google#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
- Loading branch information