-
Notifications
You must be signed in to change notification settings - Fork 75
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
New #simple() method still requires #usingGetClass() when superclass has fields #316
Labels
Comments
Thanks for reporting this. I agree, this scenario should have been covered with |
jqno
added a commit
that referenced
this issue
Jun 15, 2020
jqno
added a commit
that referenced
this issue
Jun 15, 2020
Version 3.4.1 is released which should fix this :) |
Thanks, 3.4.1 is working as expected. 👍 |
Great, glad to hear it!
…On Mon, 15 Jun 2020, 21:46 Evan Gilbert, ***@***.***> wrote:
Thanks, 3.4.1 is working as expected. 👍
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#316 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGSRMPUC7ZYFAMEHNZ2VODRWZ3CPANCNFSM4N6KILQA>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps will reproduce the problem?
Apologies if I'm misunderstanding the new capabilities, but it seems like whenever a class extends another one that has its own
#equals()
and#hashCode()
, the#usingGetClass()
method is still needed in conjunction with#simple()
which suppresses the strict inheritance check.What is the code that triggers this problem?
What error message or stack trace does EqualsVerifier give?
What did you expect?
Per Changelog 3.4, I expected to be able to just call
EqualsVerifier.simple().forClass(klazz.class).verify()
for objects with an IDE-generated#equals()
and#hashCode()
that don't need other options (like prefab values).Warning.STRICT_INHERITANCE
is noted as being suppressed automatically by#simple()
. AndWarning.STRICT_INHERITANCE
is also noted as removing the requirement for#usingGetClass()
.Previously I had been using the following:
Which version of EqualsVerifier are you using?
3.4
Please provide any additional information below.
The text was updated successfully, but these errors were encountered: