Skip to content

Commit 61490e7

Browse files
authored
Merge pull request #7561 from aschackmull/java/misc-perf
Java: A few perf fixes for getASupertype*().
2 parents 69973da + fdb4851 commit 61490e7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/ql/lib/semmle/code/java/dataflow/SSA.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ private module SsaImpl {
366366

367367
pragma[nomagic]
368368
private predicate innerclassSupertypeStar(InnerClass t1, RefType t2) {
369-
t1.getASupertype*().getSourceDeclaration() = t2
369+
t1.getASourceSupertype*().getSourceDeclaration() = t2
370370
}
371371

372372
/**

java/ql/src/Likely Bugs/Collections/ContainsTypeMismatch.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class MismatchedContainerAccess extends MethodAccess {
102102
|
103103
this.getCallee()
104104
.getDeclaringType()
105-
.getASupertype*()
105+
.getASourceSupertype*()
106106
.getSourceDeclaration()
107107
.hasQualifiedName(package, type) and
108108
this.getCallee().getParameter(i).getType() instanceof TypeObject

java/ql/src/Likely Bugs/Collections/RemoveTypeMismatch.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class MismatchedContainerModification extends MethodAccess {
7272
|
7373
this.getCallee()
7474
.getDeclaringType()
75-
.getASupertype*()
75+
.getASourceSupertype*()
7676
.getSourceDeclaration()
7777
.hasQualifiedName(package, type) and
7878
this.getCallee().getParameter(i).getType() instanceof TypeObject

0 commit comments

Comments
 (0)