Java: A few perf fixes for getASupertype*().

This commit is contained in:
Anders Schack-Mulligen
2022-01-11 13:33:54 +01:00
parent 2a36744deb
commit fdb4851521
3 changed files with 3 additions and 3 deletions

View File

@@ -366,7 +366,7 @@ private module SsaImpl {
pragma[nomagic]
private predicate innerclassSupertypeStar(InnerClass t1, RefType t2) {
t1.getASupertype*().getSourceDeclaration() = t2
t1.getASourceSupertype*().getSourceDeclaration() = t2
}
/**

View File

@@ -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

View File

@@ -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