mirror of
https://github.com/github/codeql.git
synced 2026-04-22 07:15:15 +02:00
Java: comment why we're using erased types in MaD
This commit is contained in:
@@ -190,6 +190,8 @@ class ApplicationModeMetadataExtractor extends string {
|
||||
) and
|
||||
input = AutomodelSharedUtil::getArgumentForIndex(argIdx) and
|
||||
package = callable.getDeclaringType().getPackage().getName() and
|
||||
// we're using the erased types because the MaD convention is to not specify type parameters.
|
||||
// Whether something is or isn't a sink doesn't usually depend on the type parameters.
|
||||
type = callable.getDeclaringType().getErasure().(RefType).nestedName() and
|
||||
subtypes = this.considerSubtypes(callable).toString() and
|
||||
name = callable.getName() and
|
||||
|
||||
Reference in New Issue
Block a user