aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before
diff options
context:
space:
mode:
authorJan Rieke <it@janrieke.de>2018-05-30 22:50:09 +0200
committerJan Rieke <it@janrieke.de>2018-05-30 22:54:11 +0200
commit1e87330f1825f1072fd2ce7eba15fb10e9e080e7 (patch)
treefdb934e6deae7fca36c52e31fa942f6d004d5b13 /test/transform/resource/before
parent36c75b2d68551df3f297e8dcf10a8909307c854a (diff)
downloadlombok-1e87330f1825f1072fd2ce7eba15fb10e9e080e7.tar.gz
lombok-1e87330f1825f1072fd2ce7eba15fb10e9e080e7.tar.bz2
lombok-1e87330f1825f1072fd2ce7eba15fb10e9e080e7.zip
test case for custom builder method
Diffstat (limited to 'test/transform/resource/before')
-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();
+ }
+}