mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Java: update notModeled for negative numbers
This commit is contained in:
@@ -91,7 +91,8 @@ float getNumApisWithoutMadModel(string package) {
|
||||
count(DataFlowTargetApi d |
|
||||
package = d.getDeclaringType().getPackage().toString() and
|
||||
not exists(FunctionalExpr funcExpr | d = funcExpr.asMethod()) and // remove lambdas // ! remove this if DataFlowTargetApi itself is adjusted to exclude FunctionalExpr (see static-team slack thread)
|
||||
not exists(SummarizedCallable sc | d = sc.asCallable()) // set minus with SummarizedCallables
|
||||
not exists(SummarizedCallable sc | d = sc.asCallable()) and
|
||||
not exists(FlowSummaryImpl::Public::NegativeSummarizedCallable nc | d = nc.asCallable())
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user