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

Predicate upcastToWiderType

Holds if e occurs in a context where it will be upcast to a wider type.

Import path

import semmle.code.java.security.ArithmeticCommon
predicate upcastToWiderType(Expr e)