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/GetterLazyBoolean.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/transform/resource/before/GetterLazyBoolean.java b/test/transform/resource/before/GetterLazyBoolean.java
new file mode 100644
index 00000000..bd5676fe
--- /dev/null
+++ b/test/transform/resource/before/GetterLazyBoolean.java
@@ -0,0 +1,13 @@
+@lombok.EqualsAndHashCode(of="booleanValue")
+@lombok.ToString(of="booleanValue")
+class GetterLazyBoolean {
+ @lombok.Getter(lazy=true)
+ private final boolean booleanValue = calculateBoolean();
+
+ @lombok.Getter(lazy=true)
+ private final boolean otherBooleanValue = !calculateBoolean();
+
+ private static boolean calculateBoolean() {
+ return true;
+ }
+}