Fix qldoc

This commit is contained in:
Benjamin Muskalla
2021-09-08 13:08:28 +02:00
parent f7ad894495
commit 67eaa1b735
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ private import semmle.code.java.dataflow.TaintTracking
class ExternalAPI extends Callable {
ExternalAPI() { not this.fromSource() }
/** Holds if this API is a candidate worth supporting */
/** Holds if this API is not worth supporting */
predicate isUninteresting() { isTestLibrary() or isParameterlessConstructor() }
/** Holds if this API is is a constructor without parameters */

View File

@@ -13,7 +13,7 @@ from int usages, string jarname
where
usages =
strictcount(Call c, ExternalAPI a |
c.getCallee() = a and
c.getCallee().getSourceDeclaration() = a and
not c.getFile() instanceof GeneratedFile and
a.jarContainer() = jarname and
not a.isUninteresting()