aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderAbstractToBuilder.java
blob: 3359829c281b67217d633ffbed854e64e847e495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public class SuperBuilderAbstractToBuilder {
	@lombok.experimental.SuperBuilder(toBuilder = true)
	public static class Parent {
		int parentField;
	}
	
	@lombok.experimental.SuperBuilder(toBuilder = true)
	public abstract static class Child extends Parent {
		double childField;
	}
	
	@lombok.experimental.SuperBuilder(toBuilder = true)
	public static class GrandChild extends Child {
		String grandChildField;
	}
	
	public static void test() {
		GrandChild x = GrandChild.builder().grandChildField("").parentField(5).childField(2.5).build().toBuilder().build();
	}
}