mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +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
|