aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithDefaults.java
blob: d6859a7829540d41b47420dfc5f1c5d5ed7be912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import java.util.List;

public class SuperBuilderWithDefaults {
	@lombok.experimental.SuperBuilder
	public static class Parent<N extends Number> {
		@lombok.Builder.Default private long millis = System.currentTimeMillis();
		@lombok.Builder.Default private N numberField = null;
	}
	
	@lombok.experimental.SuperBuilder
	public static class Child extends Parent<Integer> {
		@lombok.Builder.Default private double doubleField = Math.PI;
	}
	
	public static void test() {
		Child x = Child.builder().doubleField(0.1).numberField(5).millis(1234567890L).build();
	}
}