CodeQL library for Java/Kotlin
codeql/java-all 7.2.0 (changelog, source)
Search

Predicate safeCast

Holds if a cast from fromtyp to totyp can be ignored for the purpose of range analysis.

Import path

import semmle.code.java.dataflow.RangeAnalysis
predicate safeCast(Type fromtyp, Type totyp)