mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-27 20:25:27 +00:00
Issue 641: @Delegate is incorrectly allowed on static members in javac. Also added tests, Reinier.
This commit is contained in:
@@ -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