mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Java: replace exists with instanceof
This commit is contained in:
@@ -20,7 +20,7 @@ private int getNumMadModeledApis(string package, string provenance) {
|
||||
result =
|
||||
count(SummarizedCallable sc |
|
||||
package = sc.asCallable().getCompilationUnit().getPackage().getName() and
|
||||
exists(DataFlowTargetApi dataFlowTargApi | sc.asCallable() = dataFlowTargApi) and
|
||||
sc.asCallable() instanceof DataFlowTargetApi and
|
||||
(
|
||||
sc.isAutoGenerated() and // "auto-only"
|
||||
provenance = "generated"
|
||||
|
||||
Reference in New Issue
Block a user