Lombok Custom Builder

Given

@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

Hey there.

Thanks for the report. As mentioned in this post:

Can you report what version(s) of what product(s) you’re facing this FP in?