mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Merge pull request #6346 from aschackmull/java/perf-fix
Java: Fix bad magic.
This commit is contained in:
@@ -35,6 +35,7 @@ predicate instantiates(RefType t, GenericType g, int i, RefType arg) {
|
|||||||
* - a class `MyIntMap<V> extends HashMap<Integer, V>` instantiates `Map` (among others)
|
* - a class `MyIntMap<V> extends HashMap<Integer, V>` instantiates `Map` (among others)
|
||||||
* with the `0`-th type parameter being `Integer` and the `1`-th type parameter being `V`.
|
* 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) {
|
predicate indirectlyInstantiates(RefType t, GenericType g, int i, RefType arg) {
|
||||||
instantiates(t, g, i, arg)
|
instantiates(t, g, i, arg)
|
||||||
or
|
or
|
||||||
|
|||||||
Reference in New Issue
Block a user