...
This noncompliant code example attempts to use the volatile-read, synchronized-write technique described in in "Java Theory and Practice" [Goetz 2007]. The map
field is declared volatile to synchronize its reads and writes. The put()
method is also synchronized to ensure that its statements are executed atomically.
...