aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2012-01-24 02:52:13 +0100
committerRoel Spilker <r.spilker@gmail.com>2012-01-24 02:52:13 +0100
commit2242de2bf9886fc80858486bbb3aa171a5496885 (patch)
tree36f6795f3e00b1ab122fb2c1ac6d201a1660c89f /test/transform/resource/before
parent3e7bb145d3984d7472baa177ead3baf574d42e6b (diff)
downloadlombok-2242de2bf9886fc80858486bbb3aa171a5496885.tar.gz
lombok-2242de2bf9886fc80858486bbb3aa171a5496885.tar.bz2
lombok-2242de2bf9886fc80858486bbb3aa171a5496885.zip
Fix for issue 328: @Delegate on a field for which we also generate a getter will use the getter for delegation
Diffstat (limited to 'test/transform/resource/before')
-rw-r--r--test/transform/resource/before/DelegateOnGetter.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/DelegateOnGetter.java b/test/transform/resource/before/DelegateOnGetter.java
new file mode 100644
index 00000000..afe09ff4
--- /dev/null
+++ b/test/transform/resource/before/DelegateOnGetter.java
@@ -0,0 +1,18 @@
+import lombok.Delegate;
+import lombok.Getter;
+
+class DelegateOnGetter {
+
+ @Delegate @Getter(lazy=true) private final Bar bar = new Bar() {
+ public void setList(java.util.ArrayList<String> list) {
+ }
+ public int getInt() {
+ return 42;
+ }
+ };
+
+ private interface Bar {
+ void setList(java.util.ArrayList<java.lang.String> list);
+ int getInt();
+ }
+} \ No newline at end of file