Skip to content
New issue

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

Improve Lombok .toString generation for subclasses #20

Open
brianjmiller opened this issue Feb 26, 2014 · 1 comment
Open

Improve Lombok .toString generation for subclasses #20

brianjmiller opened this issue Feb 26, 2014 · 1 comment

Comments

@brianjmiller
Copy link
Member

Lombok's @tostring implementation doesn't provide attributes from a base class unless specified. Need to check @DaTa to see if we can pass that option through, or add a new annotation in classes that have a meaningful parent. See callSuper here: http://projectlombok.org/features/ToString.html

@brianjmiller
Copy link
Member Author

Looks like they'll have to be added annotations:

@DaTa is like having implicit @getter, @Setter, @tostring, @EqualsAndHashCode and @requiredargsconstructor annotations on the class. However, the parameters of these annotations (such as callSuper, includeFieldNames and exclude) cannot be set with @DaTa. If you need to set non-default values for any of these parameters, just add those annotations explicitly; @DaTa is smart enough to defer to those annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant