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

Predicate clearlyNotNull

Holds if v is an SSA variable that is provably not null.

Import path

import semmle.code.java.dataflow.NullGuards
predicate clearlyNotNull(SsaVariable v)