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