Skip to content

Commit e2a533c

Browse files
authored
Merge pull request github#6346 from aschackmull/java/perf-fix
Java: Fix bad magic.
2 parents 605f037 + dcfc027 commit e2a533c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

java/ql/src/semmle/code/java/Collections.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ predicate instantiates(RefType t, GenericType g, int i, RefType arg) {
3535
* - a class `MyIntMap<V> extends HashMap<Integer, V>` instantiates `Map` (among others)
3636
* with the `0`-th type parameter being `Integer` and the `1`-th type parameter being `V`.
3737
*/
38+
pragma[nomagic]
3839
predicate indirectlyInstantiates(RefType t, GenericType g, int i, RefType arg) {
3940
instantiates(t, g, i, arg)
4041
or

0 commit comments

Comments
 (0)