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