Use subclasses of context for sinks

This commit is contained in:
Joe Farebrother
2021-08-12 10:18:36 +01:00
parent 143920efca
commit 1e8dd7ae40

View File

@@ -48,7 +48,7 @@ class SensitiveInfoExpr extends Expr {
*/
class SendBroadcastMethodAccess extends MethodAccess {
SendBroadcastMethodAccess() {
this.getMethod().getDeclaringType() instanceof TypeContext and
this.getMethod().getDeclaringType().getASourceSupertype*() instanceof TypeContext and
this.getMethod().getName().matches("send%Broadcast%")
}
}