From efba4e3b8e3fccccda066457079fd09dd5b0cf00 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Thu, 28 Sep 2017 13:41:06 +0200 Subject: [PATCH] Add more annotations to CompletableFuture (#30) The change of the existing mapping of "supplyAsync" was motived by the fact that the result never is null and thus the return value should be annotated with 'L1' instead of just 'L'. --- .../util/concurrent/CompletableFuture.eea | 145 +++++++++++++++++- 1 file changed, 143 insertions(+), 2 deletions(-) diff --git a/libraries/java/java/util/concurrent/CompletableFuture.eea b/libraries/java/java/util/concurrent/CompletableFuture.eea index 09d724a2b..947f2d74d 100644 --- a/libraries/java/java/util/concurrent/CompletableFuture.eea +++ b/libraries/java/java/util/concurrent/CompletableFuture.eea @@ -1,7 +1,148 @@ class java/util/concurrent/CompletableFuture +acceptEither + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Consumer<-TT;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Consumer<-TT;>;)L1java/util/concurrent/CompletableFuture; +acceptEitherAsync + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Consumer<-TT;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Consumer<-TT;>;)L1java/util/concurrent/CompletableFuture; +acceptEitherAsync + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Consumer<-TT;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Consumer<-TT;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +allOf + ([Ljava/util/concurrent/CompletableFuture<*>;)Ljava/util/concurrent/CompletableFuture; + ([L1java/util/concurrent/CompletableFuture<*>;)L1java/util/concurrent/CompletableFuture; +anyOf + ([Ljava/util/concurrent/CompletableFuture<*>;)Ljava/util/concurrent/CompletableFuture; + ([L1java/util/concurrent/CompletableFuture<*>;)L1java/util/concurrent/CompletableFuture; +applyToEither + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Function<-TT;TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Function<-TT;TU;>;)L1java/util/concurrent/CompletableFuture; +applyToEitherAsync + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Function<-TT;TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Function<-TT;TU;>;)L1java/util/concurrent/CompletableFuture; +applyToEitherAsync + (Ljava/util/concurrent/CompletionStage<+TT;>;Ljava/util/function/Function<-TT;TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TT;>;L1java/util/function/Function<-TT;TU;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +completeExceptionally + (Ljava/lang/Throwable;)Z + (L1java/lang/Throwable;)Z +completedFuture + (TU;)Ljava/util/concurrent/CompletableFuture; + (T0U;)L1java/util/concurrent/CompletableFuture; +exceptionally + (Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function;)L1java/util/concurrent/CompletableFuture; +get + (JLjava/util/concurrent/TimeUnit;)TT; + (JL1java/util/concurrent/TimeUnit;)TT; +handle + (Ljava/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;)L1java/util/concurrent/CompletableFuture; +handleAsync + (Ljava/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;)L1java/util/concurrent/CompletableFuture; +handleAsync + (Ljava/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (Ljava/util/function/BiFunction<-TT;Ljava/lang/Throwable;+TU;>;Ljava/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +obtrudeException + (Ljava/lang/Throwable;)V + (L1java/lang/Throwable;)V +runAfterBoth + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +runAfterBothAsync + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +runAfterBothAsync + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +runAfterEither + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +runAfterEitherAsync + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +runAfterEitherAsync + (Ljava/util/concurrent/CompletionStage<*>;Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<*>;L1java/lang/Runnable;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +runAsync + (Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +runAsync + (Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/lang/Runnable;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; supplyAsync (Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture; - (Ljava/util/function/Supplier;)L1java/util/concurrent/CompletableFuture; + (L1java/util/function/Supplier;)L1java/util/concurrent/CompletableFuture; supplyAsync (Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; - (Ljava/util/function/Supplier;Ljava/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; + (L1java/util/function/Supplier;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenAccept + (Ljava/util/function/Consumer<-TT;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Consumer<-TT;>;)L1java/util/concurrent/CompletableFuture; +thenAcceptAsync + (Ljava/util/function/Consumer<-TT;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Consumer<-TT;>;)L1java/util/concurrent/CompletableFuture; +thenAcceptAsync + (Ljava/util/function/Consumer<-TT;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Consumer<-TT;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenAcceptBoth + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiConsumer<-TT;-TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiConsumer<-TT;-TU;>;)L1java/util/concurrent/CompletableFuture; +thenAcceptBothAsync + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiConsumer<-TT;-TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiConsumer<-TT;-TU;>;)L1java/util/concurrent/CompletableFuture; +thenAcceptBothAsync + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiConsumer<-TT;-TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiConsumer<-TT;-TU;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenApply + (Ljava/util/function/Function<-TT;+TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+TU;>;)L1java/util/concurrent/CompletableFuture; +thenApplyAsync + (Ljava/util/function/Function<-TT;+TU;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+TU;>;)L1java/util/concurrent/CompletableFuture; +thenApplyAsync + (Ljava/util/function/Function<-TT;+TU;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+TU;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenCombine + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiFunction<-TT;-TU;+TV;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiFunction<-TT;-TU;+TV;>;)L1java/util/concurrent/CompletableFuture; +thenCombineAsync + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiFunction<-TT;-TU;+TV;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiFunction<-TT;-TU;+TV;>;)L1java/util/concurrent/CompletableFuture; +thenCombineAsync + (Ljava/util/concurrent/CompletionStage<+TU;>;Ljava/util/function/BiFunction<-TT;-TU;+TV;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/concurrent/CompletionStage<+TU;>;L1java/util/function/BiFunction<-TT;-TU;+TV;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenCompose + (Ljava/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;)L1java/util/concurrent/CompletableFuture; +thenComposeAsync + (Ljava/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;)L1java/util/concurrent/CompletableFuture; +thenComposeAsync + (Ljava/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/Function<-TT;+Ljava/util/concurrent/CompletionStage;>;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +thenRun + (Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +thenRunAsync + (Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture; + (L1java/lang/Runnable;)L1java/util/concurrent/CompletableFuture; +thenRunAsync + (Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/lang/Runnable;L1java/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture; +toCompletableFuture + ()Ljava/util/concurrent/CompletableFuture; + ()L1java/util/concurrent/CompletableFuture; +toString + ()Ljava/lang/String; + ()L1java/lang/String; +whenComplete + (Ljava/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;)L1java/util/concurrent/CompletableFuture; +whenCompleteAsync + (Ljava/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;)L1java/util/concurrent/CompletableFuture; +whenCompleteAsync + (Ljava/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture; + (L1java/util/function/BiConsumer<-TT;-Ljava/lang/Throwable;>;Ljava/util/concurrent/Executor;)L1java/util/concurrent/CompletableFuture;