Inspectopedia
 
2024.3

'equal()' instead of 'equals()'

Warning
New
Last modified: 03 December 2024

Reports declarations of equal() with a single parameter. Normally, this is a typo and equals() is actually intended.

A quick-fix is suggested to rename the method to equals.

Example:

After the quick-fix is applied: