Skip to content

Commit 6377111

Browse files
committed
Java: Address review comment
1 parent b82d8c2 commit 6377111

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
1+
query: Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
2+
postprocess: utils/test/InlineExpectationsTestQuery.ql

java/ql/src/Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ predicate isConstantExp(Expr e) {
1919
// A literal is constant.
2020
e instanceof Literal
2121
or
22-
exists(TypeAccess ta | ta = e | not ta.getType() instanceof ErrorType)
22+
e instanceof TypeAccess and not e.(TypeAccess).getType() instanceof ErrorType
2323
or
2424
e instanceof ArrayTypeAccess
2525
or

0 commit comments

Comments
 (0)