Query module EqualsUsesInstanceOf

name
Possible inconsistency due to instanceof in equals
description
Implementations of ‘equals’ that use ‘instanceof’ to test the type of the argument and are further overridden in a subclass are likely to violate the ‘equals’ contract.
kind
problem
problem.severity
warning
precision
low
id
java/instanceof-in-equals
tags
reliability correctness

Imports

java

Provides all default Java QL imports.

Predicates