Skip to content

Commit e9e5f92

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: update notModeled for negative numbers
1 parent aa7e6d7 commit e9e5f92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

java/ql/src/Metrics/Summaries/GeneratedVsManualCoverage.ql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ float getNumApisWithoutMadModel(string package) {
9191
count(DataFlowTargetApi d |
9292
package = d.getDeclaringType().getPackage().toString() and
9393
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)
94-
not exists(SummarizedCallable sc | d = sc.asCallable()) // set minus with SummarizedCallables
94+
not exists(SummarizedCallable sc | d = sc.asCallable()) and
95+
not exists(FlowSummaryImpl::Public::NegativeSummarizedCallable nc | d = nc.asCallable())
9596
)
9697
)
9798
}

0 commit comments

Comments
 (0)