mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
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:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user