Skip to content

Commit 119de6c

Browse files
author
Sauyon Lee
committed
Replace type variables before attempting to match to an array generation
1 parent 9d66761 commit 119de6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/utils/FlowTestCaseSupportMethods.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ private class ArrayGenMethod extends GenMethod {
383383
ArrayGenMethod() { this = type.getName() + "genmethod" }
384384

385385
override predicate appliesTo(Type t, Content c) {
386-
t = type and
386+
replaceTypeVariable(t.(Array).getElementType()) = type.getElementType() and
387387
c instanceof ArrayContent
388388
}
389389

0 commit comments

Comments
 (0)