mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Java: A few perf fixes for getASupertype*().
This commit is contained in:
@@ -366,7 +366,7 @@ private module SsaImpl {
|
||||
|
||||
pragma[nomagic]
|
||||
private predicate innerclassSupertypeStar(InnerClass t1, RefType t2) {
|
||||
t1.getASupertype*().getSourceDeclaration() = t2
|
||||
t1.getASourceSupertype*().getSourceDeclaration() = t2
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -102,7 +102,7 @@ class MismatchedContainerAccess extends MethodAccess {
|
||||
|
|
||||
this.getCallee()
|
||||
.getDeclaringType()
|
||||
.getASupertype*()
|
||||
.getASourceSupertype*()
|
||||
.getSourceDeclaration()
|
||||
.hasQualifiedName(package, type) and
|
||||
this.getCallee().getParameter(i).getType() instanceof TypeObject
|
||||
|
||||
@@ -72,7 +72,7 @@ class MismatchedContainerModification extends MethodAccess {
|
||||
|
|
||||
this.getCallee()
|
||||
.getDeclaringType()
|
||||
.getASupertype*()
|
||||
.getASourceSupertype*()
|
||||
.getSourceDeclaration()
|
||||
.hasQualifiedName(package, type) and
|
||||
this.getCallee().getParameter(i).getType() instanceof TypeObject
|
||||
|
||||
Reference in New Issue
Block a user