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

@EqualsAndHashCode should allow for calling superclass if superclass is not Object #965

Closed
lucasmo opened this Issue Nov 13, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@lucasmo

lucasmo commented Nov 13, 2015

We have a lot of JAXB-generated classes from externally supplied schema. We typically want to add equals and hashcode methods to each of these classes. There are packages to automatically add annotations to JAXB-generated classes, but it's not simple to set callSuper to true if and only if the class has no extensions.

Would it be possible for callSuper to have an 'automatic' mode, which calls the superclass method iif that class is not Object?

@rspilker

This comment has been minimized.

Show comment
Hide comment
@rspilker

rspilker Nov 16, 2015

Collaborator

Now we have lombok.config it might be possible without breaking backwards compatibility.

Collaborator

rspilker commented Nov 16, 2015

Now we have lombok.config it might be possible without breaking backwards compatibility.

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