Skip to content

Commit 99e19e6

Browse files
author
Benjamin Muskalla
committed
Fix predicate to only match the current API
1 parent 035f7b5 commit 99e19e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

java/ql/src/Telemetry/ExternalAPI.qll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class ExternalAPI extends Callable {
2828
/**
2929
* Gets the jar file containing this API. Normalizes the Java Runtime to "rt.jar" despite the presence of modules.
3030
*/
31-
string jarContainer() {
32-
result = containerAsJar(any(ExternalAPI api).getCompilationUnit().getParentContainer*())
33-
}
31+
string jarContainer() { result = containerAsJar(this.getCompilationUnit().getParentContainer*()) }
3432

3533
private string containerAsJar(Container container) {
3634
if container instanceof JarFile then result = container.getBaseName() else result = "rt.jar"

0 commit comments

Comments
 (0)