aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/GetterLazyExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/GetterLazyExample_post.jpage')
-rw-r--r--usage_examples/GetterLazyExample_post.jpage2
1 files changed, 1 insertions, 1 deletions
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();