On 10/06/2016 17:05, Jan Lahoda wrote:
This looks good. One small suggestion is to drop the initialization of the volatiles to null, this shouldn't be needed.The other Preferences implementations used this pattern, so I used it as well. I don't have a problem with using double-checked locking. Updated webrev:http://cr.openjdk.java.net/~jlahoda/8139507/webrev.01 (updates all the Preferences implementations, to remain consistent.)
-Alan