Importing @Builder generated builder classes does not work
See original GitHub issueFor 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:
- Created 9 years ago
- Comments:16
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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