[fixes #2917] Use $value instead of value in lazy getter

This commit is contained in:
Rawi01 authored and Roel Spilker committed 2024-03-18 18:07:03 +01:00
1 parent 23307eb8d1
commit c93400d9f4
23 files changed
+361 -361

No files matched your search

@@ -7,21 +7,21 @@ public class GetterLazyInAnonymousClass {
super();
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getString() {
java.lang.Object value = this.string.get();
if ((value == null))
java.lang.Object $value = this.string.get();
if (($value == null))
{
synchronized (this.string)
{
value = this.string.get();
if ((value == null))
$value = this.string.get();
if (($value == null))
{
final String actualValue = "test";
value = ((actualValue == null) ? this.string : actualValue);
this.string.set(value);
$value = ((actualValue == null) ? this.string : actualValue);
this.string.set($value);
}
}
}
return (String) ((value == this.string) ? null : value);
return (String) (($value == this.string) ? null : $value);
}
}
x() {