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