Fix for issue 328: @Delegate on a field for which we also generate a getter will use the getter for delegation

This commit is contained in:
Roel Spilker committed 2012-01-24 02:52:13 +01:00
1 parent 3e7bb145d3
commit 2242de2bf9
8 files changed
+149 -4

No files matched your search

@@ -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();
}
}