Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lombok @Builder not working in lombok-1.16.18 java:cannot find symbol builderclass

Tags:

java

lombok

@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?

like image 696
techragesh Avatar asked Jan 08 '18 12:01

techragesh


1 Answers

I had this same issue and found that @Builder support was disabled in IntelliJ:

Intellij 2018.3 Lombok Plugin Settings

like image 73
dannrob Avatar answered Nov 01 '22 11:11

dannrob