# | Line 551 | Line 551 | public class CompletableFutureTest exten | |
---|---|---|
551 | public CompletableFuture<Integer> apply(Integer x) { | |
552 | invoked(); | |
553 | value = x; | |
554 | < | CompletableFuture<Integer> f = new CompletableFuture<>(); |
555 | < | assertTrue(f.complete(inc(x))); |
556 | < | return f; |
554 | > | return CompletableFuture.completedFuture(inc(x)); |
555 | } | |
556 | } | |
557 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |