@Builder
public class ProcessorLombokBO {
private String panel;
private String motherBoard;
private String ram;
private String hardDisk;
}
public static void main(String[] args) {
ProcessorLombokBO processorLombokBO =
new ProcessorLombokBO.ProcessorLombokBOBuilder()
.panel("Brown")
.hardDisk("SanDisk 256GB")
.ram("4GB")
.motherBoard("Intel")
.build();
System.out.println(processorLombokBO);
}
I am trying to implemenent @Builder
in a POJO, but it gives the below error when I execute the main
method.
java: cannot find symbol symbol: class ProcessorLombokBOBuilder
Did I miss something?
I had this same issue and found that @Builder support was disabled in IntelliJ:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With