On May 11, 2012, at 6:34 PM, Adam Heath wrote: >> Inside the synchronized block of your example I see the equivalent of a >> putIfAbsent method; so your code can be simplified in the equivalent version: > > There is no putIfAbsent inside synchronized of any example I have given.
What I meant is that the whole synchronized block is equivalent to a putIfAbsent. Jacopo