diff options
author | Roel Spilker <r.spilker@gmail.com> | 2012-06-18 20:23:01 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2012-06-18 23:38:00 +0200 |
commit | 6355ca8e5e0af6236351fdf07e1dcc1e2286b0aa (patch) | |
tree | f4da059de4e990d49e876015618923eab7ecc6dc /test/transform/resource/before/GetterLazyBoolean.java | |
parent | 775abd485de0d960cc9046c97426135466a187ce (diff) | |
download | lombok-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.java | 13 |
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; + } +} |