@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Foo {
private Bar bar;
private Long barId;
public static class FooBuilder {
private Bar bar;
private Long barId;
public FooBuilder bar(Bar bar) {
this.bar = bar;
this.barId = bar.getId();
return this;
}
}
}
I get java:S1068 but that construct is needed on the custom Lombok builder so the check should detect whether it is a custom Builder