[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

@@ -18,107 +18,107 @@ class GetterLazyArguments {
return null;
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField1() {
java.lang.Object value = this.field1.get();
if ((value == null))
java.lang.Object $value = this.field1.get();
if (($value == null))
{
synchronized (this.field1)
{
value = this.field1.get();
if ((value == null))
$value = this.field1.get();
if (($value == null))
{
final String actualValue = stringInt("a", 1);
value = ((actualValue == null) ? this.field1 : actualValue);
this.field1.set(value);
$value = ((actualValue == null) ? this.field1 : actualValue);
this.field1.set($value);
}
}
}
return (String) ((value == this.field1) ? null : value);
return (String) (($value == this.field1) ? null : $value);
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField2() {
java.lang.Object value = this.field2.get();
if ((value == null))
java.lang.Object $value = this.field2.get();
if (($value == null))
{
synchronized (this.field2)
{
value = this.field2.get();
if ((value == null))
$value = this.field2.get();
if (($value == null))
{
final String actualValue = stringInt((true ? "a" : "b"), (true ? 1 : 0));
value = ((actualValue == null) ? this.field2 : actualValue);
this.field2.set(value);
$value = ((actualValue == null) ? this.field2 : actualValue);
this.field2.set($value);
}
}
}
return (String) ((value == this.field2) ? null : value);
return (String) (($value == this.field2) ? null : $value);
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField3() {
java.lang.Object value = this.field3.get();
if ((value == null))
java.lang.Object $value = this.field3.get();
if (($value == null))
{
synchronized (this.field3)
{
value = this.field3.get();
if ((value == null))
$value = this.field3.get();
if (($value == null))
{
final String actualValue = stringInt("a", (true ? 1 : 0));
value = ((actualValue == null) ? this.field3 : actualValue);
this.field3.set(value);
$value = ((actualValue == null) ? this.field3 : actualValue);
this.field3.set($value);
}
}
}
return (String) ((value == this.field3) ? null : value);
return (String) (($value == this.field3) ? null : $value);
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField4() {
java.lang.Object value = this.field4.get();
if ((value == null))
java.lang.Object $value = this.field4.get();
if (($value == null))
{
synchronized (this.field4)
{
value = this.field4.get();
if ((value == null))
$value = this.field4.get();
if (($value == null))
{
final String actualValue = stringRunnable(fun(), () -> {
});
value = ((actualValue == null) ? this.field4 : actualValue);
this.field4.set(value);
$value = ((actualValue == null) ? this.field4 : actualValue);
this.field4.set($value);
}
}
}
return (String) ((value == this.field4) ? null : value);
return (String) (($value == this.field4) ? null : $value);
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField5() {
java.lang.Object value = this.field5.get();
if ((value == null))
java.lang.Object $value = this.field5.get();
if (($value == null))
{
synchronized (this.field5)
{
value = this.field5.get();
if ((value == null))
$value = this.field5.get();
if (($value == null))
{
final String actualValue = stringRunnable("a", () -> {
});
value = ((actualValue == null) ? this.field5 : actualValue);
this.field5.set(value);
$value = ((actualValue == null) ? this.field5 : actualValue);
this.field5.set($value);
}
}
}
return (String) ((value == this.field5) ? null : value);
return (String) (($value == this.field5) ? null : $value);
}
public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField6() {
java.lang.Object value = this.field6.get();
if ((value == null))
java.lang.Object $value = this.field6.get();
if (($value == null))
{
synchronized (this.field6)
{
value = this.field6.get();
if ((value == null))
$value = this.field6.get();
if (($value == null))
{
final String actualValue = (true ? stringInt((true ? "a" : "b"), (true ? 1 : 0)) : "");
value = ((actualValue == null) ? this.field6 : actualValue);
this.field6.set(value);
$value = ((actualValue == null) ? this.field6 : actualValue);
this.field6.set($value);
}
}
}
return (String) ((value == this.field6) ? null : value);
return (String) (($value == this.field6) ? null : $value);
}
}