diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-08-28 18:46:11 +0000 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2013-08-28 18:46:11 +0000 |
commit | cf7290f86133bbed53c78120453ddfc2ed734fac (patch) | |
tree | ae41f2d295d75ae2b56012f43e9e63309b1fa0c7 /usage_examples | |
parent | b93318da303b36957f3774015090121af778665f (diff) | |
download | lombok-cf7290f86133bbed53c78120453ddfc2ed734fac.tar.gz lombok-cf7290f86133bbed53c78120453ddfc2ed734fac.tar.bz2 lombok-cf7290f86133bbed53c78120453ddfc2ed734fac.zip |
fixed a code typo in the getterlazy usage example. Credits to Adam Brewster for spotting it!
Diffstat (limited to 'usage_examples')
-rw-r--r-- | usage_examples/GetterLazyExample_post.jpage | 2 |
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(); |