The product compares object references instead of the contents of the objects themselves, preventing it from detecting equivalent objects.
In Java, use the equals() method to compare objects instead of the == operator. If using ==, it is important for performance reasons that your objects are created by a static factory, not by a constructor.
Our security experts can help you identify and remediate CWE-595 vulnerabilities in your codebase.
Get Security Assessment