mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 08:15:48 +00:00
fixed a code typo in the getterlazy usage example. Credits to Adam Brewster for spotting it!
This commit is contained in:
1 parent
b93318da30
commit
cf7290f861
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user