aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/WithOnClass.java
blob: fb6350e7fa469a5c3edfd22e5f7a021554f3b0e4 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//version 8:

@lombok.With
class WithOnClass1 {
	@lombok.With(lombok.AccessLevel.NONE)
	boolean isNone;
	
	boolean isPublic;
	
	WithOnClass1(boolean isNone, boolean isPublic) {
	}
}

@lombok.With(lombok.AccessLevel.PROTECTED)
class WithOnClass2 {
	@lombok.With(lombok.AccessLevel.NONE)
	boolean isNone;
	
	boolean isProtected;
	
	@lombok.With(lombok.AccessLevel.PACKAGE)
	boolean isPackage;
	
	WithOnClass2(boolean isNone, boolean isProtected, boolean isPackage) {
	}
}

@lombok.With
class WithOnClass3 {
	String couldBeNull;
	
	@lombok.NonNull String nonNull;
	
	WithOnClass3(String couldBeNull, String nonNull) {
	}
}

@lombok.With @lombok.experimental.Accessors(prefix="f")
class WithOnClass4 {
	final int fX = 10;
	
	final int fY;
	
	WithOnClass4(int y) {
		this.fY = y;
	}
}