mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 18:18:48 +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
@@ -5,21 +5,21 @@
|
||||
super();
|
||||
}
|
||||
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getValue() {
|
||||
java.lang.Object value = this.value.get();
|
||||
if ((value == null))
|
||||
java.lang.Object $value = this.value.get();
|
||||
if (($value == null))
|
||||
{
|
||||
synchronized (this.value)
|
||||
{
|
||||
value = this.value.get();
|
||||
if ((value == null))
|
||||
$value = this.value.get();
|
||||
if (($value == null))
|
||||
{
|
||||
final String actualValue = "";
|
||||
value = ((actualValue == null) ? this.value : actualValue);
|
||||
this.value.set(value);
|
||||
$value = ((actualValue == null) ? this.value : actualValue);
|
||||
this.value.set($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return (String) ((value == this.value) ? null : value);
|
||||
return (String) (($value == this.value) ? null : $value);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") String getValue2() {
|
||||
return this.value2;
|
||||
|
||||
Reference in new issue
Block a user