diff options
Diffstat (limited to 'test/transform/resource/before/SuperBuilderWithGenerics2.java')
-rw-r--r-- | test/transform/resource/before/SuperBuilderWithGenerics2.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderWithGenerics2.java b/test/transform/resource/before/SuperBuilderWithGenerics2.java new file mode 100644 index 00000000..f84ff1f5 --- /dev/null +++ b/test/transform/resource/before/SuperBuilderWithGenerics2.java @@ -0,0 +1,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(); + } +} |