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

Predicate getADeadRoot

For a dead callable, we identify all the possible dead roots.

For dead callables which are either part of dead code cycles, or are only depended upon by callables in dead cycles, there will be no dead roots.

Import path

import semmle.code.java.deadcode.DeadCode
DeadRoot getADeadRoot(Callable c)