Query module ContainsTypeMismatch

name
Type mismatch on container access
description
Calling container access methods such as ‘Collection.contains’ or ‘Map.get’ with an object of a type that is incompatible with the corresponding container element type is unlikely to return ‘true’.
kind
problem
problem.severity
error
precision
very-high
id
java/type-mismatch-access
tags
reliability correctness logic

Imports

Collections
java

Provides all default Java QL imports.

Predicates

Classes