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

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

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

Comments

@lucasmo
Copy link

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
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants