InstanceOf check instead of comparing classnames

This commit is contained in:
Timo Mueller
2021-05-04 15:51:40 +02:00
parent fd52135f29
commit f7437422c1

View File

@@ -57,8 +57,8 @@ class MapToPutCredentialstypeConfiguration extends DataFlow2::Configuration {
put.getKey().toString() = "RMIConnectorServer.CREDENTIALS_FILTER_PATTERN" // This can probably be solved more nicely
|
put.getQualifier() = qualifier and
put.getMethod().(MapMethod).getReceiverKeyType().getName() = "String" and
put.getMethod().(MapMethod).getReceiverValueType().getName() = "Object"
put.getMethod().(MapMethod).getReceiverKeyType() instanceof TypeString and
put.getMethod().(MapMethod).getReceiverValueType() instanceof TypeObject
)
}
}