aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/GetterLazyArguments.java
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2020-08-31 09:57:29 +0200
committerRawi01 <Rawi01@users.noreply.github.com>2020-08-31 09:57:29 +0200
commit82ac8aad1d0e3e152db4ce328184c40c73700cee (patch)
tree3d5abb9072d43b87f19e5faf88a3d09b6c6da8e4 /test/transform/resource/after-ecj/GetterLazyArguments.java
parent3d90a51163354930eeea0e26c2b0a567af8e96be (diff)
parent9148294f78a8e646ee131ca182a9b692bc028fdb (diff)
downloadlombok-82ac8aad1d0e3e152db4ce328184c40c73700cee.tar.gz
lombok-82ac8aad1d0e3e152db4ce328184c40c73700cee.tar.bz2
lombok-82ac8aad1d0e3e152db4ce328184c40c73700cee.zip
Merge branch 'master' into extensionmethod
Conflicts: build.xml
Diffstat (limited to 'test/transform/resource/after-ecj/GetterLazyArguments.java')
-rw-r--r--test/transform/resource/after-ecj/GetterLazyArguments.java106
1 files changed, 106 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/GetterLazyArguments.java b/test/transform/resource/after-ecj/GetterLazyArguments.java
new file mode 100644
index 00000000..41f1771f
--- /dev/null
+++ b/test/transform/resource/after-ecj/GetterLazyArguments.java
@@ -0,0 +1,106 @@
+class GetterLazyArguments {
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field1 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field2 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field3 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field4 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ private final @lombok.Getter(lazy = true) java.util.concurrent.atomic.AtomicReference<java.lang.Object> field5 = new java.util.concurrent.atomic.AtomicReference<java.lang.Object>();
+ GetterLazyArguments() {
+ super();
+ }
+ static String fun() {
+ return null;
+ }
+ static String stringInt(String arg1, Integer arg2) {
+ return null;
+ }
+ static String stringRunnable(String arg1, Runnable arg2) {
+ return null;
+ }
+ public @java.lang.SuppressWarnings({"all", "unchecked"}) String getField1() {
+ java.lang.Object value = this.field1.get();
+ if ((value == null))
+ {
+ synchronized (this.field1)
+ {
+ value = this.field1.get();
+ if ((value == null))
+ {
+ final String actualValue = stringInt("a", 1);
+ value = ((actualValue == null) ? this.field1 : actualValue);
+ this.field1.set(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))
+ {
+ synchronized (this.field2)
+ {
+ 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);
+ }
+ }
+ }
+ 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))
+ {
+ synchronized (this.field3)
+ {
+ 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);
+ }
+ }
+ }
+ 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))
+ {
+ synchronized (this.field4)
+ {
+ value = this.field4.get();
+ if ((value == null))
+ {
+ final String actualValue = stringRunnable(fun(), () -> {
+});
+ value = ((actualValue == null) ? this.field4 : actualValue);
+ this.field4.set(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))
+ {
+ synchronized (this.field5)
+ {
+ value = this.field5.get();
+ if ((value == null))
+ {
+ final String actualValue = stringRunnable("a", () -> {
+});
+ value = ((actualValue == null) ? this.field5 : actualValue);
+ this.field5.set(value);
+ }
+ }
+ }
+ return (String) ((value == this.field5) ? null : value);
+ }
+} \ No newline at end of file