Skip to content

Commit

Permalink
fixed a code typo in the getterlazy usage example. Credits to Adam Br…
Browse files Browse the repository at this point in the history
…ewster for spotting it!
  • Loading branch information
rzwitserloot committed Aug 28, 2013
1 parent b93318d commit cf7290f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usage_examples/GetterLazyExample_post.jpage
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cf7290f

Please sign in to comment.