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