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

Module DeadEnumConstant

Import path

import semmle.code.java.deadcode.DeadEnumConstant

Imports

java

Provides all default Java QL imports.

Predicates

exception

Exceptions to the “must have its value used” rule.

valueAccess

Gets an access to an enum constant, where the reference to the constant may be stored and used by the enclosing program rather than just being compared and discarded.

valueFlow

Direct flow of values (i.e. object references) through expressions.

Classes