aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithGenerics2.java
blob: f84ff1f5e0cd520b29fc35f5e82b84f2a1dd9d55 (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 SuperBuilderWithGenerics2 {
	@lombok.experimental.SuperBuilder
	public static class Parent<A> {
		A field1;
		@lombok.Singular List<String> items;
	}
	
	@lombok.experimental.SuperBuilder(builderMethodName="builder2")
	public static class Child<A> extends Parent<String> {
		A field3;
	}
	
	public static void test() {
		Child<Integer> x = Child.<Integer>builder2().field3(1).field1("value").item("").build();
	}
}