aboutsummaryrefslogtreecommitdiff
path: root/website2/usageExamples/experimental/FieldDefaultsExample_pre.jpage
blob: c83358326775fb766fa431ed9b4bfedc3dcc78e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import lombok.AccessLevel;
import lombok.experimental.FieldDefaults;
import lombok.experimental.NonFinal;
import lombok.experimental.PackagePrivate;

@FieldDefaults(makeFinal=true, level=AccessLevel.PRIVATE)
public class FieldDefaultsExample {
	public final int a;
	int b;
	@NonFinal int c;
	@PackagePrivate int d;
	
	FieldDefaultsExample() {
		a = 0;
		b = 0;
		d = 0;
	}
}