Skip to content

Commit 5a9aa46

Browse files
committed
Remove downcast
1 parent 8c63656 commit 5a9aa46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/ning/http/client/async/ListenableFutureTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void testListenableFuture() throws Throwable {
4141
final AtomicInteger statusCode = new AtomicInteger(500);
4242
AsyncHttpClient ahc = getAsyncHttpClient(null);
4343
final CountDownLatch latch = new CountDownLatch(1);
44-
final Future<Response> future = ((ListenableFuture<Response>)ahc.prepareGet(getTargetUrl()).execute());
44+
final Future<Response> future = ahc.prepareGet(getTargetUrl()).execute();
4545
((ListenableFuture)future).addListener(new Runnable(){
4646

4747
public void run() {

0 commit comments

Comments
 (0)