mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Java: getSourceDeclaration() and getASourceSupertype*() commute and this yields much better join-order.
This commit is contained in:
@@ -103,8 +103,8 @@ class MismatchedContainerAccess extends MethodCall {
|
||||
|
|
||||
this.getCallee()
|
||||
.getDeclaringType()
|
||||
.getASourceSupertype*()
|
||||
.getSourceDeclaration()
|
||||
.getASourceSupertype*()
|
||||
.hasQualifiedName(package, type) and
|
||||
this.getCallee().getParameter(i).getType() instanceof TypeObject
|
||||
)
|
||||
@@ -119,7 +119,7 @@ class MismatchedContainerAccess extends MethodCall {
|
||||
containerAccess(package, type, p, this.getCallee().getSignature(), i)
|
||||
|
|
||||
t = this.getCallee().getDeclaringType() and
|
||||
t.getASourceSupertype*().getSourceDeclaration() = g and
|
||||
t.getSourceDeclaration().getASourceSupertype*() = g and
|
||||
g.hasQualifiedName(package, type) and
|
||||
indirectlyInstantiates(t, g, p, result)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user