diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-04 23:26:01 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-04-04 23:26:20 +0200 |
commit | 3eea3b958946dd813197f00a1292b7a72380878a (patch) | |
tree | 9f8e16f6d1544e28be713d1c57f3666f1ced9494 /test/transform/resource/before/SuperBuilderBasic.java | |
parent | 6b0b1a6a7ba73a2c43bb8ab413375505d61aacc6 (diff) | |
download | lombok-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.java | 20 |
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(); + } +} |