Changed Future<Void> to Future<?>

Changed return values of Future<Void> to Future<?> in AsyncRestTemplate
and AsyncRestOperations.
This commit is contained in:
Arjen Poutsma
2013-09-02 15:33:16 +02:00
parent 79ddba5d01
commit e33324b700
3 changed files with 20 additions and 14 deletions

View File

@@ -149,7 +149,7 @@ public class AsyncRestTemplateIntegrationTests extends AbstractJettyServerTestCa
public void put()
throws URISyntaxException, ExecutionException, InterruptedException {
HttpEntity<String> requestEntity = new HttpEntity<>(helloWorld);
Future<Void>
Future<?>
responseEntityFuture = template.put(baseUrl + "/{method}", requestEntity,
"put");
responseEntityFuture.get();
@@ -158,7 +158,7 @@ public class AsyncRestTemplateIntegrationTests extends AbstractJettyServerTestCa
@Test
public void delete()
throws URISyntaxException, ExecutionException, InterruptedException {
Future<Void> deletedFuture = template.delete(new URI(baseUrl + "/delete"));
Future<?> deletedFuture = template.delete(new URI(baseUrl + "/delete"));
deletedFuture.get();
}