From cf7290f86133bbed53c78120453ddfc2ed734fac Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Wed, 28 Aug 2013 18:46:11 +0000 Subject: fixed a code typo in the getterlazy usage example. Credits to Adam Brewster for spotting it! --- usage_examples/GetterLazyExample_post.jpage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usage_examples') diff --git a/usage_examples/GetterLazyExample_post.jpage b/usage_examples/GetterLazyExample_post.jpage index afed1748..5f34c43e 100644 --- a/usage_examples/GetterLazyExample_post.jpage +++ b/usage_examples/GetterLazyExample_post.jpage @@ -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(); -- cgit