Query module IncomparableEquals

name
Equals on incomparable types
description
Calls of the form ‘x.equals(y)’, where the types of ‘x’ and ‘y’ are incomparable, should always return ‘false’.
kind
problem
problem.severity
error
precision
very-high
id
java/equals-on-unrelated-types
tags
reliability correctness

Imports

java

Provides all default Java QL imports.

Classes

EqualsCall

A call to an equals method.