Skip to content

Commit 89f4a35

Browse files
author
Benjamin Muskalla
committed
Remove filter to see all unsupported APIs
1 parent 8aba0b0 commit 89f4a35

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

java/ql/src/Telemetry/ExternalAPI.qll

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ class ExternalAPI extends Callable {
1313
/** Holds true if this API is part of a common testing library or framework */
1414
predicate isTestLibrary() { getDeclaringType() instanceof TestLibrary }
1515

16-
/** Holds true if this API has inputs or outputs that are interesting to support by CodeQL. */
17-
predicate isInteresting() {
18-
getNumberOfParameters() > 0 and
19-
exists(Type retType | retType = getReturnType() |
20-
not retType instanceof VoidType and
21-
not retType instanceof PrimitiveType and
22-
not retType instanceof BoxedType
23-
)
24-
}
25-
2616
/**
2717
* Gets information about the external API in the form expected by the CSV modeling framework.
2818
*/

java/ql/src/Telemetry/ExternalAPIUsages.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import semmle.code.java.GeneratedFiles
1414
from ExternalAPI api
1515
where
1616
not api.isTestLibrary() and
17-
not api.isSupported() and
18-
api.isInteresting()
17+
not api.isSupported()
1918
select api.asCSV(api) as csv,
2019
strictcount(Call c |
2120
c.getCallee() = api and

0 commit comments

Comments
 (0)