mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-01 00:28:38 +00:00
[Issue 275] Allow @Delegate on no-argument methods
This commit is contained in:
committed by
Reinier Zwitserloot
parent
68fe3f41e9
commit
87cca2d322
@@ -0,0 +1,13 @@
|
||||
import lombok.Delegate;
|
||||
abstract class DelegateOnMethods {
|
||||
public static interface Bar {
|
||||
void bar(java.util.ArrayList<java.lang.String> list);
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") void bar(final java.util.ArrayList<java.lang.String> list) {
|
||||
this.getBar().bar(list);
|
||||
}
|
||||
DelegateOnMethods() {
|
||||
super();
|
||||
}
|
||||
public abstract @Delegate Bar getBar();
|
||||
}
|
||||
Reference in New Issue
Block a user