aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java')
-rw-r--r--test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java b/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
new file mode 100644
index 00000000..d52cbded
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithCustomBuilderMethod.java
@@ -0,0 +1,21 @@
+import java.util.List;
+
+public class SuperBuilderWithCustomBuilderMethod {
+ @lombok.experimental.SuperBuilder
+ public static class Parent<A> {
+ A field1;
+ @lombok.Singular List<String> items;
+ }
+
+ @lombok.experimental.SuperBuilder
+ public static class Child<A> extends Parent<A> {
+ double field3;
+ public static <A> ChildBuilder<A, ?, ?> builder() {
+ return new ChildBuilderImpl<A>().item("default item");
+ }
+ }
+
+ public static void test() {
+ Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build();
+ }
+}