CodeQL library for Java/Kotlin
codeql/java-all 7.8.3-dev (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)