Inspectopedia Help

'equals()' between objects of inconvertible types

Reports calls to equals() where the target and argument are of incompatible types.

While such a call might theoretically be useful, most likely it represents a bug.

Example:

new HashSet<String>() == new TreeSet<Integer>())

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Groovy, 233.SNAPSHOT

Last modified: 13 July 2023