Covariant 'equals()'

Last modified: 03 December 2024

Reports equals() that takes an argument type other than Any? if the class does not have another equals() that takes Any? as its argument type.

Example:

To fix the problem create equals() method that takes an argument of type Any?.