mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 04:15:06 +00:00
second generics test case
This commit is contained in:
1 parent
4735f99d28
commit
7bd60ea6e6
4 files changed
+256
-3
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user