aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-03-29 03:36:29 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-03-29 03:36:29 +0200
commit6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6 (patch)
tree557bcef9697351a9c55169617423b5c542973501 /test
parent2a6c0c16b303b6af0b96e296858c2c54140f6dfe (diff)
downloadlombok-6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6.tar.gz
lombok-6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6.tar.bz2
lombok-6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6.zip
[builderParentClass] test cases
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/before/BuilderWithInherit.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderWithInherit.java b/test/transform/resource/before/BuilderWithInherit.java
new file mode 100644
index 00000000..dcc7b5ad
--- /dev/null
+++ b/test/transform/resource/before/BuilderWithInherit.java
@@ -0,0 +1,20 @@
+import lombok.Builder;
+import lombok.Singular;
+import java.util.List;
+
+public class BuilderWithInherit {
+ @Builder(extensible = true)
+ public static class Parent {
+ int field1;
+ @Singular List<String> items;
+ }
+
+ @Builder(inherit = true)
+ public static class Child extends Parent {
+ double field3;
+ }
+
+ public static void test() {
+ Child x = Child.builder().field3(0.0).field1(5).item("").build();
+ }
+}