mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-16 06:14:36 +00:00
[fixes #2917] Use $value instead of value in lazy getter
This commit is contained in:
1 parent
23307eb8d1
commit
c93400d9f4
23 files changed
+361
-361
No files matched your search
@@ -3,17 +3,17 @@ class GetterLazyErrorPosition {
|
||||
|
||||
@java.lang.SuppressWarnings({"all", "unchecked"})
|
||||
public String getField() {
|
||||
java.lang.Object value = this.field.get();
|
||||
if (value == null) {
|
||||
java.lang.Object $value = this.field.get();
|
||||
if ($value == null) {
|
||||
synchronized (this.field) {
|
||||
value = this.field.get();
|
||||
if (value == null) {
|
||||
$value = this.field.get();
|
||||
if ($value == null) {
|
||||
final String actualValue = true ? "" : new ErrorPosition();
|
||||
value = actualValue == null ? this.field : actualValue;
|
||||
this.field.set(value);
|
||||
$value = actualValue == null ? this.field : actualValue;
|
||||
this.field.set($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return (String) (value == this.field ? null : value);
|
||||
return (String) ($value == this.field ? null : $value);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user