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

Predicate 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.

Import path

import semmle.code.java.deadcode.DeadEnumConstant
VarAccess valueAccess(EnumConstant e)