'equals()' between objects of inconvertible types
Reports calls to equals()
where the receiver and the argument are of incompatible primitive, enum, or string types.
While such a call might theoretically be useful, most likely it represents a bug.
Example:
5.equals("");
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Kotlin, @snapshot@ |
Last modified: 13 July 2023