The product compares classes by name, which can cause it to use the wrong class when multiple classes can have the same name.
Use class equivalency to determine type. Rather than use the class name to determine if an object is of a given type, use the getClass() method, and == operator.
Our security experts can help you identify and remediate CWE-486 vulnerabilities in your codebase.
Get Security Assessment