mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Java: Re-factor provenance related predicates for summarized callable.
This commit is contained in:
@@ -26,15 +26,16 @@ private int getNumMadModeledApis(string package, string provenance) {
|
||||
sc.isAutoGenerated() and
|
||||
provenance = "generated"
|
||||
or
|
||||
// "manual-only"
|
||||
sc.hasProvenance(false) and
|
||||
not sc.hasProvenance(true) and
|
||||
provenance = "manual"
|
||||
or
|
||||
// "both"
|
||||
sc.hasProvenance(false) and
|
||||
sc.hasProvenance(true) and
|
||||
provenance = "both"
|
||||
sc.isManual() and
|
||||
(
|
||||
if sc.hasProvenance("generated")
|
||||
then
|
||||
// "both"
|
||||
provenance = "both"
|
||||
else
|
||||
// "manual-only"
|
||||
provenance = "manual"
|
||||
)
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user