[TEST] remove one too many SuppressWarnings

This commit is contained in:
javanna 2016-07-13 15:20:53 +02:00 committed by Luca Cavanna
parent 06caea6b80
commit 69309fb834
2 changed files with 0 additions and 2 deletions

View File

@ -79,7 +79,6 @@ public class RestClientMultipleHostsTests extends RestClientTestCase {
HttpAsyncRequestProducer requestProducer = (HttpAsyncRequestProducer) invocationOnMock.getArguments()[0];
HttpUriRequest request = (HttpUriRequest)requestProducer.generateRequest();
HttpHost httpHost = requestProducer.getTarget();
@SuppressWarnings("unchecked")
FutureCallback<HttpResponse> futureCallback = (FutureCallback<HttpResponse>) invocationOnMock.getArguments()[2];
//return the desired status code or exception depending on the path
if (request.getURI().getPath().equals("/soe")) {

View File

@ -102,7 +102,6 @@ public class RestClientSingleHostTests extends RestClientTestCase {
@Override
public Future<HttpResponse> answer(InvocationOnMock invocationOnMock) throws Throwable {
HttpAsyncRequestProducer requestProducer = (HttpAsyncRequestProducer) invocationOnMock.getArguments()[0];
@SuppressWarnings("unchecked")
FutureCallback<HttpResponse> futureCallback = (FutureCallback<HttpResponse>) invocationOnMock.getArguments()[2];
HttpUriRequest request = (HttpUriRequest)requestProducer.generateRequest();
//return the desired status code or exception depending on the path