Skip to content

Commit 66379de

Browse files
authored
Merge pull request #20380 from aschackmull/java/fix-broken-perf
Java: Fix broken performance.
2 parents c5cb86a + c6adc51 commit 66379de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

java/ql/src/Violations of Best Practice/Naming Conventions/ConfusingOverloading.ql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ private predicate candidateMethod(RefType t, Method m, string name, int numParam
6666
predicate paramTypePair(Type t1, Type t2) {
6767
exists(Method n, Method m, int i |
6868
overloadedMethodsMostSpecific(n, m) and
69-
t1 = n.getParameterType(i) and
70-
t2 = m.getParameterType(i)
69+
t1 = n.getParameterType(pragma[only_bind_into](i)) and
70+
t2 = m.getParameterType(pragma[only_bind_into](i))
7171
)
7272
}
7373

@@ -93,6 +93,7 @@ predicate potentiallyConfusingTypesRefTypes(RefType t1, RefType t2) {
9393
}
9494

9595
// then check hasSubtypeOrInstantiation
96+
pragma[nomagic]
9697
predicate potentiallyConfusingTypes(Type t1, Type t2) {
9798
potentiallyConfusingTypesSimple(t1, t2)
9899
or

0 commit comments

Comments
 (0)