Reports any use of
==
or
!=
to compare strings, which compares object identity. In most cases strings should be compared with an
equals()
call instead, which does a character-by-character comparison when the strings are different objects.