diff options
Diffstat (limited to 'test/transform/resource/before/SuperBuilderCustomizedWithSetterPrefix.java')
-rw-r--r-- | test/transform/resource/before/SuperBuilderCustomizedWithSetterPrefix.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderCustomizedWithSetterPrefix.java b/test/transform/resource/before/SuperBuilderCustomizedWithSetterPrefix.java new file mode 100644 index 00000000..be2cfc4a --- /dev/null +++ b/test/transform/resource/before/SuperBuilderCustomizedWithSetterPrefix.java @@ -0,0 +1,18 @@ +import java.util.List; + +public class SuperBuilderCustomizedWithSetterPrefix { + @lombok.experimental.SuperBuilder(setterPrefix = "set") + public static class Parent { + public static abstract class ParentBuilder<C extends Parent, B extends ParentBuilder<C, B>> { + public B setField1(int field1) { + this.field1 = field1 + 1; + return self(); + } + } + int field1; + } + + public static void test() { + Parent x = Parent.builder().setField1(5).build(); + } +} |