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

Predicate enumConstEquality

Gets an equality test between an expression e and an enum constant c.

Import path

import semmle.code.java.dataflow.NullGuards
Expr enumConstEquality(Expr e, boolean polarity, EnumConstant c)