# | Line 2592 | Line 2592 | public class CompletableFuture<T> implem | |
---|---|---|
2592 | * @return the exceptionally completed CompletionStage | |
2593 | * @since 1.9 | |
2594 | */ | |
2595 | < | public static <U> CompletableFuture<U> failedStage(Throwable ex) { |
2595 | > | public static <U> CompletionStage<U> failedStage(Throwable ex) { |
2596 | if (ex == null) throw new NullPointerException(); | |
2597 | return new MinimalStage<U>(encodeThrowable(ex)); | |
2598 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |