mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-15 14:16:39 +00:00
[Issue 275] Allow @Delegate on no-argument methods
This commit is contained in:
1 parent
68fe3f41e9
commit
87cca2d322
7 files changed
+222
-68
No files matched your search
@@ -0,0 +1,12 @@
|
||||
abstract class DelegateOnMethods {
|
||||
public abstract Bar getBar();
|
||||
|
||||
public static interface Bar {
|
||||
void bar(java.util.ArrayList<java.lang.String> list);
|
||||
}
|
||||
|
||||
@java.lang.SuppressWarnings("all")
|
||||
public void bar(final java.util.ArrayList<java.lang.String> list) {
|
||||
this.getBar().bar(list);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user