mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Java: Address review comment
This commit is contained in:
@@ -1 +1,2 @@
|
||||
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
|
||||
query: Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
|
||||
postprocess: utils/test/InlineExpectationsTestQuery.ql
|
||||
@@ -19,7 +19,7 @@ predicate isConstantExp(Expr e) {
|
||||
// A literal is constant.
|
||||
e instanceof Literal
|
||||
or
|
||||
exists(TypeAccess ta | ta = e | not ta.getType() instanceof ErrorType)
|
||||
e instanceof TypeAccess and not e.(TypeAccess).getType() instanceof ErrorType
|
||||
or
|
||||
e instanceof ArrayTypeAccess
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user