mirror of
https://github.com/github/codeql.git
synced 2026-03-01 13:23:49 +01:00
Java: Add SwitchExpr to Nullness::dereference.
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user