mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
28 lines
878 B
Plaintext
28 lines
878 B
Plaintext
import java
|
|
import semmle.code.java.frameworks.JaxWS
|
|
import TestUtilities.InlineExpectationsTest
|
|
|
|
class JaxWsEndpointTest extends InlineExpectationsTest {
|
|
JaxWsEndpointTest() { this = "JaxWsEndpointTest" }
|
|
|
|
override string getARelevantTag() { result = ["JaxWsEndpoint", "JaxWsEndpointRemoteMethod"] }
|
|
|
|
override predicate hasActualResult(Location location, string element, string tag, string value) {
|
|
tag = "JaxWsEndpoint" and
|
|
exists(JaxWsEndpoint jaxWsEndpoint |
|
|
jaxWsEndpoint.getLocation() = location and
|
|
element = jaxWsEndpoint.toString() and
|
|
value = ""
|
|
)
|
|
or
|
|
tag = "JaxWsEndpointRemoteMethod" and
|
|
exists(Callable remoteMethod |
|
|
remoteMethod = any(JaxWsEndpoint jaxWsEndpoint).getARemoteMethod()
|
|
|
|
|
remoteMethod.getLocation() = location and
|
|
element = remoteMethod.toString() and
|
|
value = ""
|
|
)
|
|
}
|
|
}
|