aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java
diff options
context:
space:
mode:
authorCaleb Brinkman <cbrinkman@sonatype.com>2019-09-12 11:27:08 -0500
committerCaleb Brinkman <cbrinkman@sonatype.com>2019-09-12 11:28:20 -0500
commit36287f2ff9ed2f809f8c1c76155919417ad04d3c (patch)
tree45f5e4da4216d95bf36935c699495a8850ae61b1 /test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java
parentcc070254a68331c2593c37359921854c74692661 (diff)
downloadlombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.tar.gz
lombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.tar.bz2
lombok-36287f2ff9ed2f809f8c1c76155919417ad04d3c.zip
Duplicate builder tests with setter prefix
Diffstat (limited to 'test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java')
-rw-r--r--test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java b/test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java
new file mode 100644
index 00000000..8be20f58
--- /dev/null
+++ b/test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java
@@ -0,0 +1,20 @@
+import java.util.List;
+import lombok.Builder;
+@Builder(toBuilder = true, setterPrefix = "with") @lombok.experimental.Accessors(prefix = "m")
+class BuilderWithToBuilder<T> {
+ private String mOne, mTwo;
+ @Builder.ObtainVia(method = "rrr", isStatic = true) private T foo;
+ @lombok.Singular private List<T> bars;
+ public static <K> K rrr(BuilderWithToBuilder<K> x) {
+ return x.foo;
+ }
+}
+@lombok.experimental.Accessors(prefix = "m")
+class ConstructorWithToBuilder<T> {
+ private String mOne, mTwo;
+ private T foo;
+ @lombok.Singular private com.google.common.collect.ImmutableList<T> bars;
+ @Builder(toBuilder = true)
+ public ConstructorWithToBuilder(String mOne, @Builder.ObtainVia(field = "foo") T baz, com.google.common.collect.ImmutableList<T> bars) {
+ }
+}