Skip to content

Commit 50518b5

Browse files
author
Benjamin Muskalla
committed
Fix sum of rows
1 parent cd39d15 commit 50518b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

java/ql/src/Diagnostics/CoverageDiagnostics.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import semmle.code.java.dataflow.ExternalFlow
1111
from string packageAndType, int rows
1212
where
1313
exists(string package, string type |
14-
modelCoverage(package, _, _, type, _) and
1514
packageAndType = package + ";" + type and
16-
rows = sum(int n | modelCoverage(package, _, _, type, n) | n)
15+
rows = strictsum(int n, string kind | modelCoverage(package, _, kind, type, n) | n)
1716
)
1817
select packageAndType, rows

0 commit comments

Comments
 (0)