mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Java: Use hasQualifiedName rather than getQualifiedName in ExternalAPIs
It's more efficient, as it doesn't require building intermediate strings.
This commit is contained in:
@@ -24,7 +24,7 @@ private class DefaultSafeExternalApiMethod extends SafeExternalApiMethod {
|
||||
or
|
||||
this.getDeclaringType().hasQualifiedName("org.apache.commons.lang3", "Validate")
|
||||
or
|
||||
this.getQualifiedName() = "Objects.equals"
|
||||
this.hasQualifiedName("java.util", "Objects", "equals")
|
||||
or
|
||||
this.getDeclaringType() instanceof TypeString and this.getName() = "equals"
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user