Switch qualified name to available CollectionType

This commit is contained in:
Francis Alexander
2021-02-17 16:01:27 +05:30
parent 520ba47293
commit 58971f9f4e

View File

@@ -31,10 +31,7 @@ private predicate setsAllowCredentials(MethodAccess header) {
class CorsProbableCheckAccess extends MethodAccess {
CorsProbableCheckAccess() {
getMethod().hasName("contains") and
getMethod()
.getDeclaringType()
.getASourceSupertype*()
.hasQualifiedName("java.util", "Collection")
getMethod().getDeclaringType().getASourceSupertype*() instanceof CollectionType
or
getMethod().hasName("equals") and
getQualifier().getType() instanceof TypeString