Inspectopedia
 
2024.3

Arrays comparison via '==' and '!='

Warning
New
Last modified: 03 December 2024

Reports usages of == or != operator for arrays that should be replaced with contentEquals().

The == and !=operators compare array references instead of their content.

Examples:

After the quick-fix is applied: