Java: Address review comment

This commit is contained in:
idrissrio
2025-09-30 11:46:37 +02:00
parent b82d8c2252
commit 63771110a5
2 changed files with 3 additions and 2 deletions

View File

@@ -1 +1,2 @@
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
query: Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
postprocess: utils/test/InlineExpectationsTestQuery.ql

View File

@@ -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