You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a record named Foo a builder named FooBuilder is generated.
To generate a builder you have to do FooBuilder.builder() which feels a bit long winded and repetitive.
Potential solutions:
Make the generated constructor public so we can do new FooBuilder() (which is what the existing static .builder() method wraps)
Generate a static method named fooBuilder instead of/or as well as builder. This has the advantage of being able to static import it as currently builder() loses context if you do that.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: