diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-12-11 01:59:05 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2019-12-11 01:59:05 +0100 |
commit | f8ecfafbcd30fdbb3b94a4b0bd1dd50fcf4e4b9e (patch) | |
tree | 0a4598d5e68232dc95aea8e58e8837088abc9462 /test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java | |
parent | ad2cc23d2cc6b47c1453122505a3e589c3c0668f (diff) | |
parent | 870937a46f912592206abda57638d142ae81e763 (diff) | |
download | lombok-f8ecfafbcd30fdbb3b94a4b0bd1dd50fcf4e4b9e.tar.gz lombok-f8ecfafbcd30fdbb3b94a4b0bd1dd50fcf4e4b9e.tar.bz2 lombok-f8ecfafbcd30fdbb3b94a4b0bd1dd50fcf4e4b9e.zip |
Merge branch 'floralvikings-feature/builder-setter-prefixes'
Diffstat (limited to 'test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java')
-rw-r--r-- | test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java b/test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java new file mode 100644 index 00000000..70394d09 --- /dev/null +++ b/test/transform/resource/after-delombok/BuilderWithTolerateWithSetterPrefix.java @@ -0,0 +1,40 @@ +import lombok.experimental.Tolerate; +public class BuilderWithTolerateWithSetterPrefix { + private final int value; + public static void main(String[] args) { + BuilderWithTolerateWithSetterPrefix.builder().withValue("42").build(); + } + public static class BuilderWithTolerateWithSetterPrefixBuilder { + @java.lang.SuppressWarnings("all") + private int value; + @Tolerate + public BuilderWithTolerateWithSetterPrefixBuilder withValue(String s) { + return this.withValue(Integer.parseInt(s)); + } + @java.lang.SuppressWarnings("all") + BuilderWithTolerateWithSetterPrefixBuilder() { + } + @java.lang.SuppressWarnings("all") + public BuilderWithTolerateWithSetterPrefixBuilder withValue(final int value) { + this.value = value; + return this; + } + @java.lang.SuppressWarnings("all") + public BuilderWithTolerateWithSetterPrefix build() { + return new BuilderWithTolerateWithSetterPrefix(value); + } + @java.lang.Override + @java.lang.SuppressWarnings("all") + public java.lang.String toString() { + return "BuilderWithTolerateWithSetterPrefix.BuilderWithTolerateWithSetterPrefixBuilder(value=" + this.value + ")"; + } + } + @java.lang.SuppressWarnings("all") + BuilderWithTolerateWithSetterPrefix(final int value) { + this.value = value; + } + @java.lang.SuppressWarnings("all") + public static BuilderWithTolerateWithSetterPrefixBuilder builder() { + return new BuilderWithTolerateWithSetterPrefixBuilder(); + } +} |