aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderBasic.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-04-04 23:26:01 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2018-04-04 23:26:20 +0200
commit3eea3b958946dd813197f00a1292b7a72380878a (patch)
tree9f8e16f6d1544e28be713d1c57f3666f1ced9494 /test/transform/resource/before/SuperBuilderBasic.java
parent6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6 (diff)
downloadlombok-3eea3b958946dd813197f00a1292b7a72380878a.tar.gz
lombok-3eea3b958946dd813197f00a1292b7a72380878a.tar.bz2
lombok-3eea3b958946dd813197f00a1292b7a72380878a.zip
introduction of `@SuperBuilder` and a testcase.
Diffstat (limited to 'test/transform/resource/before/SuperBuilderBasic.java')
-rw-r--r--test/transform/resource/before/SuperBuilderBasic.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderBasic.java b/test/transform/resource/before/SuperBuilderBasic.java
new file mode 100644
index 00000000..bf3eea64
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderBasic.java
@@ -0,0 +1,20 @@
+import lombok.experimental.SuperBuilder;
+import lombok.Singular;
+import java.util.List;
+
+public class SuperBuilderBasic {
+ @SuperBuilder
+ public static class Parent {
+ int field1;
+ @Singular List<String> items;
+ }
+
+ @SuperBuilder
+ public static class Child extends Parent {
+ double field3;
+ }
+
+ public static void test() {
+ Child x = Child.builder().field3(0.0).field1(5).item("").build();
+ }
+}