You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
Generated main class from wadl2java is generating tons of calls to a deprecated method.
publicT getAsXml(Class returnType) {
UriBuilder localUriBuilder = _uriBuilder.clone();
com.sun.jersey.api.client.WebResource resource = _client.resource(localUriBuilder.buildFromMap(_templateAndMatrixParameterValues));
com.sun.jersey.api.client.WebResource.Builder resourceBuilder = resource.getRequestBuilder();
resourceBuilder = resourceBuilder.accept("application/xml");
com.sun.jersey.api.client.ClientResponse response;
response = resourceBuilder.method("GET", com.sun.jersey.api.client.ClientResponse.class);
if (!com.sun.jersey.api.client.ClientResponse.class.isAssignableFrom(returnType)) {
if (response.getStatus()>= 400)
{ throw new CAMSWebServices.WebApplicationExceptionMessage(Response.status(response.getClientResponseStatus()).build()); }
}
if (!com.sun.jersey.api.client.ClientResponse.class.isAssignableFrom(returnType))
{ return response.getEntity(returnType); }
else
{ return returnType.cast(response); }
}
Specifically this code is returning an issue:
response.getClientResponseStatus()).build()
The Issue is "The method getClientResponseStatus() from the type ClientResponse is deprecated"
Environment
Windows
Affected Versions
[current]
The text was updated successfully, but these errors were encountered: