Java: fix bot alert, remove metadata from qltest

This commit is contained in:
Jami Cogswell
2022-12-16 08:44:23 -05:00
parent fdcaa93200
commit bf6148c477

View File

@@ -1,23 +1,19 @@
/**
* @name Test for top JDK APIs
* @description Provides a test case to check that a manual models exists for each each of the top JDK APIs.
* @id java/top-jdk-apis-test
*/
import java
import semmle.code.java.dataflow.ExternalFlow
import TopJdkApis
from string apiName, TopJdkApi topApi
from string apiName
where
// top jdk api names for which there is no callable
topJdkApiName(apiName) and
not hasCallable(apiName)
or
// top jdk api names for which there isn't a manual model
not topApi.hasManualMadModel() and
apiName =
topApi.asCallable().getDeclaringType().getPackage() + "." +
topApi.asCallable().getDeclaringType().getSourceDeclaration() + "#" +
topApi.asCallable().getName() + paramsString(topApi.asCallable())
exists(TopJdkApi topApi |
not topApi.hasManualMadModel() and
apiName =
topApi.asCallable().getDeclaringType().getPackage() + "." +
topApi.asCallable().getDeclaringType().getSourceDeclaration() + "#" +
topApi.asCallable().getName() + paramsString(topApi.asCallable())
)
select apiName order by apiName