Query module CovariantCompareTo

name
Overloaded compareTo
description
Defining ‘Comparable.compareTo’, where the parameter of ‘compareTo’ is not of the appropriate type, overloads ‘compareTo’ instead of overriding it.
kind
problem
problem.severity
error
precision
medium
id
java/wrong-compareto-signature
tags
reliability correctness

Imports

java

Provides all default Java QL imports.