lombok-intellij-plugin: Importing @Builder generated builder classes does not work

For example, if I have:

@Builder
public class Test
{
  private int foo;
}

This will generate an internal class named TestBuilder. If I then try to import it in another class like import Test.TestBuilder it thinks the class doesn’t exist.

However, I can still import the class Test and assign the builder to a new variable like Test.TestBuilder builder = Test.builder(); but I would like to just reference the builder class itself if possible

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 16

Most upvoted comments

if you are usinng intelliJ, you can install the lombok plugins to let IntelliJ knows that the references are preCompiled