question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing @Builder generated builder classes does not work

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:16

github_iconTop GitHub Comments

4reactions
evantaurustacommented, Nov 28, 2018

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

0reactions
haereeroocommented, Feb 12, 2019

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

brilliant! thank you so much

Read more comments on GitHub >

github_iconTop Results From Across the Web

Builder Annotation not working in Java class - Stack Overflow
While trying to create a builder for the same in LibraryApplication.java builder is not being recognized. How can I enable the annotations which ......
Read more >
[#LEP-4488] Service Builder not importing all classes
Short: Classes created in the impl folder of a generated package do not import into the interface. Long: If I create a portlet...
Read more >
@Builder - Project Lombok
If using @Builder to generate builders to produce instances of your own class (this is always the case unless adding @Builder to a...
Read more >
Protocol Buffer Basics: Java - Google Developers
Builders vs. Messages. The message classes generated by the protocol buffer compiler are all immutable. Once a message object is constructed, it cannot...
Read more >
Themify Builder Documentation
Load Layout = Import pre-designed Builder Layouts to the current page. ... Please note that the Builder does not work on archive pages....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found