mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Revert "Java: Fix external flow perofrmance with future optimiser."
This reverts commit be1d4c04f2.
This commit is contained in:
@@ -616,21 +616,16 @@ private predicate elementSpec(
|
||||
summaryModel(namespace, type, subtypes, name, signature, ext, _, _, _)
|
||||
}
|
||||
|
||||
private predicate relevantCallable(Callable c) { elementSpec(_, _, _, c.getName(), _, _) }
|
||||
|
||||
private string paramsStringPart(Callable c, int i) {
|
||||
relevantCallable(c) and
|
||||
(
|
||||
i = -1 and result = "("
|
||||
i = -1 and result = "("
|
||||
or
|
||||
exists(int n, string p | c.getParameterType(n).getErasure().toString() = p |
|
||||
i = 2 * n and result = p
|
||||
or
|
||||
exists(int n, string p | c.getParameterType(n).getErasure().toString() = p |
|
||||
i = 2 * n and result = p
|
||||
or
|
||||
i = 2 * n - 1 and result = "," and n != 0
|
||||
)
|
||||
or
|
||||
i = 2 * c.getNumberOfParameters() and result = ")"
|
||||
i = 2 * n - 1 and result = "," and n != 0
|
||||
)
|
||||
or
|
||||
i = 2 * c.getNumberOfParameters() and result = ")"
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user