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

Predicate getArrayDef

Gets the definition of v provided that v is a non-null array with an explicit ArrayCreationExpr definition and that the definition does not go through a back edge.

Import path

import semmle.code.java.dataflow.RangeUtils
ArrayCreationExpr getArrayDef ( SsaVariable v )