[java-inspections] IDEA-355789 'equals()' called on itself: disable for comparator contract test

GitOrigin-RevId: e378fb4b0a2e76698f09c911bc2cce75abead793
This commit is contained in:
Tagir Valeev
2024-07-02 16:37:40 +00:00
committed by intellij-monorepo-bot
parent bec1744128
commit a90638139a
5 changed files with 44 additions and 13 deletions
@@ -2012,7 +2012,8 @@ class.with.only.private.constructors.problem.descriptor=Class <code>#ref</code>
property.value.set.to.itself.display.name=Property value set to itself
equals.with.itself.display.name='equals()' called on itself
equals.with.itself.problem.descriptor=<code>#ref()</code> called on itself
equals.with.itself.option=Warn about test assertions only on final library class types or primitives
equals.with.itself.option=Ignore possible contract testing
equals.with.itself.option.description=When checked, some cases like <code>assertEquals(myObj, myObj)</code> will not be reported, as this could be an intended code to test whether the <code>equals()</code> method is implemented correctly.
junit4.method.naming.convention.element.description=JUnit 4+ test method
junit3.method.naming.convention.element.description=JUnit 3 test method
introduce.holder.class.quickfix=Introduce holder class