mirror of
https://github.com/tiennm99/lombok.git
synced 2026-05-28 12:22:31 +00:00
Fixed issue #778: problems with onX if the annotation to be added has named args.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
//version :7
|
||||
public class OnXJava7Style {
|
||||
@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