Comparison of Object References Instead of Object Contents
CWE-595 · Variant · Incomplete
The product compares object references instead of the contents of the objects themselves, preventing it from detecting equivalent objects.
Extended description
For example, in Java, comparing objects using == usually produces deceptive results, since the == operator compares object references rather than values.
often, this means that using == for strings is actually comparing the strings' references, not their values.