We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As reported in #88 it is confusing if a generated builder provides a copy method that actually does not copy anything:
copy
public ContactBuilder copy(Contact pojo) { return self; }
This happens for example, if the given pojo provides no accessible getter methods (following the Java Beans standard) for its fields:
public class Contact { private final String name; private final String email; @GeneratePojoBuilder(withCopyMethod = true) public Contact(String name, String email) { this.name = name; this.email = email; } }
In such cases PB should skip the generation of the copy method and emit a warning.
The text was updated successfully, but these errors were encountered:
6da5692
No branches or pull requests
As reported in #88 it is confusing if a generated builder provides a
copy
method that actually does not copy anything:This happens for example, if the given pojo provides no accessible getter methods (following the Java Beans standard) for its fields:
In such cases PB should skip the generation of the
copy
method and emit a warning.The text was updated successfully, but these errors were encountered: