Skip to content

Commit bf6148c

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: fix bot alert, remove metadata from qltest
1 parent fdcaa93 commit bf6148c

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed
Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
/**
2-
* @name Test for top JDK APIs
3-
* @description Provides a test case to check that a manual models exists for each each of the top JDK APIs.
4-
* @id java/top-jdk-apis-test
5-
*/
6-
71
import java
82
import semmle.code.java.dataflow.ExternalFlow
93
import TopJdkApis
104

11-
from string apiName, TopJdkApi topApi
5+
from string apiName
126
where
137
// top jdk api names for which there is no callable
148
topJdkApiName(apiName) and
159
not hasCallable(apiName)
1610
or
1711
// top jdk api names for which there isn't a manual model
18-
not topApi.hasManualMadModel() and
19-
apiName =
20-
topApi.asCallable().getDeclaringType().getPackage() + "." +
21-
topApi.asCallable().getDeclaringType().getSourceDeclaration() + "#" +
22-
topApi.asCallable().getName() + paramsString(topApi.asCallable())
12+
exists(TopJdkApi topApi |
13+
not topApi.hasManualMadModel() and
14+
apiName =
15+
topApi.asCallable().getDeclaringType().getPackage() + "." +
16+
topApi.asCallable().getDeclaringType().getSourceDeclaration() + "#" +
17+
topApi.asCallable().getName() + paramsString(topApi.asCallable())
18+
)
2319
select apiName order by apiName

0 commit comments

Comments
 (0)