We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18feffa commit f8b28f5Copy full SHA for f8b28f5
client/src/test/java/org/asynchttpclient/ListenableFutureTest.java
@@ -53,7 +53,7 @@ public void testListenableFutureAfterCompletion() throws Exception {
53
try (AsyncHttpClient ahc = asyncHttpClient()) {
54
final ListenableFuture<Response> future = ahc.prepareGet(getTargetUrl()).execute();
55
future.get();
56
- future.addListener(() -> latch.countDown(), Runnable::run);
+ future.addListener(latch::countDown, Runnable::run);
57
}
58
59
latch.await(10, TimeUnit.SECONDS);
0 commit comments