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
The @builder annotation always creates a public builder class with public methods.
This is not always wanted; for package-private and protected classes, it does not make sense.
It would be nice to be able to define the access level for the builder, just like you can do it with constructors.
@Builder(access = AccessLevel.PACKAGE)
class TestMe {
private final String test;
}
would generate
@Builder(access = AccessLevel.PACKAGE)
class TestMe {
private final String test;
static final class TestMeBuilder {
//builder methods here
}
}
The text was updated successfully, but these errors were encountered:
The @builder annotation always creates a public builder class with public methods.
This is not always wanted; for package-private and protected classes, it does not make sense.
It would be nice to be able to define the access level for the builder, just like you can do it with constructors.
would generate
The text was updated successfully, but these errors were encountered: