mirror of
https://github.com/github/codeql.git
synced 2026-02-24 02:43:40 +01:00
10 lines
341 B
Plaintext
10 lines
341 B
Plaintext
import semmle.code.java.Variable
|
|
|
|
from Variable v, Expr init, RefType enclosing, boolean constant
|
|
where
|
|
v.getInitializer() = init
|
|
and init.getEnclosingCallable().getDeclaringType() = enclosing
|
|
and enclosing.hasQualifiedName("constants", "Values")
|
|
and constant = init.(CompileTimeConstantExpr).getBooleanValue()
|
|
select init, constant
|