Open CfFanDuel opened 2 months ago
Just realised I can use this option to overwrite it:
boolean publicBuilderConstructors() default false;
So that solves my problem, though I wonder if the default should be true :)
Though the above doesn't help with Staged builders as using the public constructor bypasses the staging...
Given a record named
Foo
a builder namedFooBuilder
is generated.To generate a builder you have to do
FooBuilder.builder()
which feels a bit long winded and repetitive.Potential solutions:
new FooBuilder()
(which is what the existing static.builder()
method wraps)fooBuilder
instead of/or as well asbuilder
. This has the advantage of being able to static import it as currentlybuilder()
loses context if you do that.