diff options
author | Caleb Brinkman <cbrinkman@sonatype.com> | 2019-09-12 11:27:08 -0500 |
---|---|---|
committer | Caleb Brinkman <cbrinkman@sonatype.com> | 2019-09-12 11:28:20 -0500 |
commit | 36287f2ff9ed2f809f8c1c76155919417ad04d3c (patch) | |
tree | 45f5e4da4216d95bf36935c699495a8850ae61b1 /test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java | |
parent | cc070254a68331c2593c37359921854c74692661 (diff) | |
download | lombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.tar.gz lombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.tar.bz2 lombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.zip |
Duplicate builder tests with setter prefix
Diffstat (limited to 'test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java')
-rw-r--r-- | test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java b/test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java new file mode 100644 index 00000000..2f4db558 --- /dev/null +++ b/test/transform/resource/before/BuilderWithTolerateWithSetterPrefix.java @@ -0,0 +1,18 @@ +import lombok.Builder; +import lombok.experimental.Tolerate; + +@Builder(setterPrefix = "with") +public class BuilderWithTolerate { + private final int value; + + public static void main(String[] args) { + BuilderWithTolerate.builder().value("42").build(); + } + + public static class BuilderWithTolerateBuilder { + @Tolerate + public BuilderWithTolerateBuilder value(String s) { + return this.value(Integer.parseInt(s)); + } + } +} |