ACMNexus / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

Review all instances of lazy field initialization #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We are doing lazy field init many different ways, and many of them wrong.
This will be tedious but necessary to ensure correct threadsafe behavior.

Original issue reported on code.google.com by kevin...@gmail.com on 6 Jun 2008 at 7:00

GoogleCodeExporter commented 8 years ago
I'm currently making a pass through our source code, reviewing the 
implementations
and fixing things. For lazy initialization, I'm using the single-check idiom on 
page
284 of Effective Java, version 2. While that section of the book describes 
other lazy
initialization approaches, sticking with the single-check idiom everywhere makes
sense to me.

Original comment by jared.l....@gmail.com on 7 Jun 2008 at 1:10

GoogleCodeExporter commented 8 years ago

Original comment by kevin...@gmail.com on 18 Mar 2009 at 2:20

GoogleCodeExporter commented 8 years ago

Original comment by kevin...@gmail.com on 17 Sep 2009 at 6:03

GoogleCodeExporter commented 8 years ago
we've been over all this code lots of times; closing this.

Original comment by kevin...@gmail.com on 16 Oct 2009 at 9:02