From dcfc027b5f1801908df61343bbcc7cb1cd2c20ad Mon Sep 17 00:00:00 2001 From: Anders Schack-Mulligen Date: Thu, 22 Jul 2021 10:12:49 +0200 Subject: [PATCH] Java: Fix bad magic. --- java/ql/src/semmle/code/java/Collections.qll | 1 + 1 file changed, 1 insertion(+) diff --git a/java/ql/src/semmle/code/java/Collections.qll b/java/ql/src/semmle/code/java/Collections.qll index 9569dfc4c2c..d557d6281de 100644 --- a/java/ql/src/semmle/code/java/Collections.qll +++ b/java/ql/src/semmle/code/java/Collections.qll @@ -35,6 +35,7 @@ predicate instantiates(RefType t, GenericType g, int i, RefType arg) { * - a class `MyIntMap extends HashMap` instantiates `Map` (among others) * with the `0`-th type parameter being `Integer` and the `1`-th type parameter being `V`. */ +pragma[nomagic] predicate indirectlyInstantiates(RefType t, GenericType g, int i, RefType arg) { instantiates(t, g, i, arg) or