Skip to content

Commit 3da2fb9

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: remove parentheses
1 parent 028fc29 commit 3da2fb9

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ private int getNumMadModeledApis(string package, string provenance) {
2222
package = sc.asCallable().getCompilationUnit().getPackage().getName() and
2323
sc.asCallable() instanceof DataFlowTargetApi and
2424
(
25-
sc.isAutoGenerated() and // "auto-only"
25+
// "auto-only"
26+
sc.isAutoGenerated() and
2627
provenance = "generated"
2728
or
28-
(sc.hasProvenance(false) and not sc.hasProvenance(true)) and // "manual-only"
29+
// "manual-only"
30+
sc.hasProvenance(false) and
31+
not sc.hasProvenance(true) and
2932
provenance = "manual"
3033
or
31-
(sc.hasProvenance(false) and sc.hasProvenance(true)) and // "both"
34+
// "both"
35+
sc.hasProvenance(false) and
36+
sc.hasProvenance(true) and
3237
provenance = "both"
3338
)
3439
)

0 commit comments

Comments
 (0)