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