aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2018-09-16 21:20:58 +0200
committerJan Rieke <rieke@subshell.com>2018-09-16 21:20:58 +0200
commit63343fced581dc9f5721d5cca81265db138254a5 (patch)
tree469c523161b2b8b6cc2e55185a98d2c83685662c /test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java
parent790e060380f01ea113bfeee25b3138ea267ebcb4 (diff)
downloadlombok-63343fced581dc9f5721d5cca81265db138254a5.tar.gz
lombok-63343fced581dc9f5721d5cca81265db138254a5.tar.bz2
lombok-63343fced581dc9f5721d5cca81265db138254a5.zip
SuperBuilder toBuilder: test with generics
Diffstat (limited to 'test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java')
-rw-r--r--test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java b/test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java
new file mode 100644
index 00000000..dae68034
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithGenericsAndToBuilder.java
@@ -0,0 +1,18 @@
+import java.util.List;
+
+public class SuperBuilderWithGenericsAndToBuilder {
+ @lombok.experimental.SuperBuilder(toBuilder = true)
+ public static class Parent<A> {
+ A field1;
+ @lombok.Singular List<String> items;
+ }
+
+ @lombok.experimental.SuperBuilder(toBuilder = true)
+ public static class Child<A> extends Parent<A> {
+ double field3;
+ }
+
+ public static void test() {
+ Child<Integer> x = Child.<Integer>builder().field3(0.0).field1(5).item("").build().toBuilder().build();
+ }
+}