mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 00:14:50 +00:00
[fix #3230] switch setter and self/build methods to allow overloaded
self/build methods
This commit is contained in:
1 parent
1473389f39
commit
588a4a88c1
5 files changed
+217
-11
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user