mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Merge pull request #13900 from atorralba/atorralba/java/jaxws-getaremotemethod-improv
Java: Improve `JaxWsEndpoint::getARemoteMethod`
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import java.io.File;
|
||||
|
||||
import javax.jws.WebMethod;
|
||||
import javax.jws.WebService;
|
||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||
import javax.xml.ws.WebEndpoint;
|
||||
import javax.xml.ws.WebServiceClient;
|
||||
import javax.xml.ws.WebServiceProvider;
|
||||
@@ -8,37 +11,88 @@ import javax.xml.ws.WebServiceProvider;
|
||||
class WebServiceClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@WebServiceProvider
|
||||
class WebServiceProviderClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@WebServiceClient
|
||||
class WebServiceClientClass { // $ JaxWsEndpoint
|
||||
|
||||
@WebMethod
|
||||
void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebMethodMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
@WebEndpoint
|
||||
void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
public void WebEndpointMethod() { // $ JaxWsEndpointRemoteMethod
|
||||
}
|
||||
|
||||
public String acceptableTypes(String param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
public String unacceptableParamType(File param) { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
public File unacceptableReturnType() { // not an endpoint
|
||||
return null;
|
||||
}
|
||||
|
||||
@XmlJavaTypeAdapter
|
||||
public File annotatedTypes(@XmlJavaTypeAdapter File param) { // $ JaxWsEndpointRemoteMethod
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user