Java: Add SwitchExpr to Nullness::dereference.

This commit is contained in:
Anders Schack-Mulligen
2019-05-15 13:20:55 +02:00
parent ec10b76d5a
commit 531d30f048

View File

@@ -104,6 +104,8 @@ predicate dereference(Expr e) {
or
exists(SwitchStmt switch | switch.getExpr() = e)
or
exists(SwitchExpr switch | switch.getExpr() = e)
or
exists(FieldAccess fa, Field f | fa.getQualifier() = e and fa.getField() = f and not f.isStatic())
or
exists(MethodAccess ma, Method m |