Skip to content

Commit 7e77e2e

Browse files
author
Stephan Brandauer
committed
Java: comment why we're using erased types in MaD
1 parent a8799fe commit 7e77e2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ class ApplicationModeMetadataExtractor extends string {
190190
) and
191191
input = AutomodelSharedUtil::getArgumentForIndex(argIdx) and
192192
package = callable.getDeclaringType().getPackage().getName() and
193+
// we're using the erased types because the MaD convention is to not specify type parameters.
194+
// Whether something is or isn't a sink doesn't usually depend on the type parameters.
193195
type = callable.getDeclaringType().getErasure().(RefType).nestedName() and
194196
subtypes = this.considerSubtypes(callable).toString() and
195197
name = callable.getName() and

0 commit comments

Comments
 (0)