aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/GetterLazyArguments.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterLazyArguments.java b/test/transform/resource/before/GetterLazyArguments.java
new file mode 100644
index 00000000..47dfae55
--- /dev/null
+++ b/test/transform/resource/before/GetterLazyArguments.java
@@ -0,0 +1,21 @@
+// version 8:
+class GetterLazyArguments {
+ static String fun() { return null; }
+ static String stringInt(String arg1, Integer arg2) { return null; }
+ static String stringRunnable(String arg1, Runnable arg2) { return null; }
+
+ @lombok.Getter(lazy=true)
+ private final String field1 = stringInt(("a"), (1));
+
+ @lombok.Getter(lazy=true)
+ private final String field2 = stringInt(true ? "a" : "b", true ? 1 : 0);
+
+ @lombok.Getter(lazy=true)
+ private final String field3 = stringInt(("a"), true ? 1 : 0);
+
+ @lombok.Getter(lazy=true)
+ private final String field4 = stringRunnable(fun(), () -> { });
+
+ @lombok.Getter(lazy=true)
+ private final String field5 = stringRunnable(("a"), () -> { });
+}