aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderBasicToBuilder.java
blob: bc3578f5ef3905d68fa3a5a17a321c40570208f5 (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 SuperBuilderBasicToBuilder {
	@lombok.experimental.SuperBuilder(toBuilder=true)
	public static class Parent {
		int field1;
		@lombok.Singular List<String> items;
	}
	
	@lombok.experimental.SuperBuilder(toBuilder=true)
	public static class Child extends Parent {
		double field3;
	}
	
	public static void test() {
		Child x = Child.builder().field3(0.0).field1(5).item("").build().toBuilder().build();
	}
}