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

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

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
Collaborator

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

@rzwitserloot rzwitserloot added a commit that closed this issue Nov 23, 2015
@rzwitserloot [Fixes #965] Adds a config key to automatically determine the behavio…
…ur of equals and hashCode generation when
728ae64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment