We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e8680 commit d3232eaCopy full SHA for d3232ea
java/ql/src/Likely Bugs/Arithmetic/ConstantExpAppearsNonConstant.ql
@@ -19,7 +19,7 @@ predicate isConstantExp(Expr e) {
19
// A literal is constant.
20
e instanceof Literal
21
or
22
- e instanceof TypeAccess
+ exists(TypeAccess ta | ta = e | not ta.getType() instanceof ErrorType)
23
24
e instanceof ArrayTypeAccess
25
0 commit comments