mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-07 00:15:51 +00:00
Fixed issue #778: problems with onX if the annotation to be added has named args.
This commit is contained in:
1 parent
8bfbd7fa84
commit
d05d037433
35 files changed
+489
-112
No files matched your search
@@ -0,0 +1,16 @@
|
||||
//version 8:
|
||||
public class OnXJava8Style {
|
||||
@interface Foo {
|
||||
String value() default "";
|
||||
}
|
||||
|
||||
@interface Bar {
|
||||
String stuff() default "";
|
||||
}
|
||||
|
||||
@lombok.Getter(onMethod_=@Foo) String a;
|
||||
@lombok.Setter(onMethod_=@Foo()) String b;
|
||||
@lombok.Setter(onParam_=@Foo("a")) String c;
|
||||
@lombok.Setter(onParam_=@Bar(stuff="b")) String d;
|
||||
@lombok.Getter(onMethod_={@Foo(value="c"), @Bar(stuff="d")}) String e;
|
||||
}
|
||||
Reference in new issue
Block a user