mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Switch qualified name to available CollectionType
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user