aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorCaleb Brinkman <cbrinkman@sonatype.com>2019-07-10 17:27:01 -0500
committerCaleb Brinkman <cbrinkman@sonatype.com>2019-07-10 17:28:54 -0500
commit88bf742e3e107cc0bbfc3a72c2f456d34ef3079c (patch)
tree4ee4ceecd14e49e371e40e6dd33b25c1babf2dae /test/transform/resource/after-ecj
parent96151ade650c2038ab639a1c0f5a504747c4b1b5 (diff)
downloadlombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.tar.gz
lombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.tar.bz2
lombok-88bf742e3e107cc0bbfc3a72c2f456d34ef3079c.zip
Implement prefixed setters
Related to #1805, this change adds an optional `setterPrefix` parameter to the `Builder` annotation; if this parameter is unspecified or blank the behavior of the `Builder` annotation is unchanged, but if it is present the value specified will be prefixed to the generated methods. For example, using: ``` @Builder(setterPrefix = "include") class Foo { private int someValue; } ``` will result in a generated `Builder` class containing an `includeSomeValue(int someValue)` method instead of the default `someValue(int someValue)`.
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/BuilderWithPrefix.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/BuilderWithPrefix.java b/test/transform/resource/after-ecj/BuilderWithPrefix.java
index 21a60d0d..98c42fe9 100644
--- a/test/transform/resource/after-ecj/BuilderWithPrefix.java
+++ b/test/transform/resource/after-ecj/BuilderWithPrefix.java
@@ -13,7 +13,7 @@ import java.util.List;
return new BuilderWithPrefix<T>(unprefixed);
}
public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() {
- return (((("BuilderWithPrefix.BuilderWithPrefixBuilder(unprefixed=" + this.unprefixed) + ")");
+ return (("BuilderWithPrefix.BuilderWithPrefixBuilder(unprefixed=" + this.unprefixed) + ")");
}
}
private int unprefixed;