Example:
interface Entity {}
class EntityImpl implements Entity {}
void processObject(Object obj) {
// warning: instanceof check for a concrete class, rather than the interface
if (obj instanceof EntityImpl) {
processEntity((Entity)obj);
}
}
Use the checkbox below to have this inspection ignore instanceof on abstract classes.