aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/OnXJava8Style.java
blob: 7e77e36e0cbdeeac9d7155127eb654e44f7fd9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//version 8:
public class OnXJava8Style {
	@interface Foo {
		String value() default "";
	}

	@interface Bar {
		String stuff() default "";
	}

	@interface Array {
		String[] value() 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;
	@lombok.Getter(onMethod_=@Array) String f;
	@lombok.Getter(onMethod_=@Array()) String g;
	@lombok.Getter(onMethod_=@Array({})) String h;
	@lombok.Getter(onMethod_=@Array({"a", "b"})) String i;
}