fixed a code typo in the getterlazy usage example. Credits to Adam Brewster for spotting it!

This commit is contained in:
Reinier Zwitserloot committed 2013-08-28 18:46:11 +00:00
1 parent b93318da30
commit cf7290f861
1 file changed
+1 -1
+1 -1
View File
@@ -4,7 +4,7 @@ public class GetterLazyExample {
public double[] getCached() {
java.lang.Object value = this.cached.get();
if (value == null) {
synchronized(value) {
synchronized(this.cached) {
value = this.cached.get();
if (value == null) {
final double[] actualValue = expensive();