aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java
diff options
context:
space:
mode:
authorJan Rieke <rieke@subshell.com>2022-07-15 13:04:31 +0200
committerJan Rieke <rieke@subshell.com>2022-07-15 13:04:31 +0200
commit588a4a88c19103670bffb4bcc81fc203379253e9 (patch)
tree70401ddf3e4a8d746d94ada01f8f3640c715c8c8 /test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java
parent1473389f397579a224d57b496f6387f3b8cbb6a9 (diff)
downloadlombok-588a4a88c19103670bffb4bcc81fc203379253e9.tar.gz
lombok-588a4a88c19103670bffb4bcc81fc203379253e9.tar.bz2
lombok-588a4a88c19103670bffb4bcc81fc203379253e9.zip
[fix #3230] switch setter and self/build methods to allow overloaded
self/build methods
Diffstat (limited to 'test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java')
-rw-r--r--test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java b/test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java
new file mode 100644
index 00000000..be6fea6a
--- /dev/null
+++ b/test/transform/resource/before/SuperBuilderWithOverloadedGeneratedMethods.java
@@ -0,0 +1,15 @@
+public class SuperBuilderWithOverloadedGeneratedMethods {
+ @lombok.experimental.SuperBuilder
+ public static class Parent {
+ int self;
+ }
+
+ @lombok.experimental.SuperBuilder
+ public static class Child extends Parent {
+ double build;
+ }
+
+ public static void test() {
+ Child x = Child.builder().build(0.0).self(5).build();
+ }
+}