I want to override Lombok default builder method. I tried this piece of code, but it doesn't work.
Is it even possible to do such thing?
@Data
@Builder
static class A {
private int a;
static class Builder {
A.ABuilder a(int x) {
this.a = 2 * x;
return this;
}
}
}
private static void fun() {
var a = A.builder()
.a(1)
.build();
}