mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 12:14:07 +00:00
Issue 641: @Delegate is incorrectly allowed on static members in javac. Also added tests, Reinier.
This commit is contained in:
1 parent
bef8d3cb41
commit
4372aedbd0
4 files changed
+34
-10
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import lombok.Delegate;
|
||||
import lombok.Getter;
|
||||
|
||||
class DelegateOnStatic {
|
||||
@Delegate private static final java.lang.Runnable staticField = null;
|
||||
}
|
||||
|
||||
class DelegateOnStaticMethod {
|
||||
@Delegate private static final java.lang.Runnable staticMethod() {
|
||||
return null;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user