CodeQL library for Java/Kotlin
codeql/java-all 1.1.0 (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)