aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/GetterLazyBoolean.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-06-18 20:23:01 +0200
committerRoel Spilker <r.spilker@gmail.com>2012-06-18 23:38:00 +0200
commit6355ca8e5e0af6236351fdf07e1dcc1e2286b0aa (patch)
treef4da059de4e990d49e876015618923eab7ecc6dc /test/transform/resource/before/GetterLazyBoolean.java
parent775abd485de0d960cc9046c97426135466a187ce (diff)
downloadlombok-6355ca8e5e0af6236351fdf07e1dcc1e2286b0aa.tar.gz
lombok-6355ca8e5e0af6236351fdf07e1dcc1e2286b0aa.tar.bz2
lombok-6355ca8e5e0af6236351fdf07e1dcc1e2286b0aa.zip
Created testcase for i376
Diffstat (limited to 'test/transform/resource/before/GetterLazyBoolean.java')
-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;
+ }
+}