From 950b1b96be68d71d0b30dc8a4b4b2e8d1a38763f Mon Sep 17 00:00:00 2001 From: Thomas Segismont Date: Thu, 9 Jan 2020 16:05:04 +0100 Subject: [PATCH] Fully @GenIgnore CompletionStage interop methods Otherwise it breaks Rx generation and there's no real interest in these methods there. Signed-off-by: Thomas Segismont --- src/main/java/io/vertx/core/Future.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/vertx/core/Future.java b/src/main/java/io/vertx/core/Future.java index 6be7a8fbd..15b783f74 100644 --- a/src/main/java/io/vertx/core/Future.java +++ b/src/main/java/io/vertx/core/Future.java @@ -488,7 +488,7 @@ public interface Future extends AsyncResult { * * @return a {@link CompletionStage} that completes when this future resolves */ - @GenIgnore(GenIgnore.PERMITTED_TYPE) + @GenIgnore default CompletionStage toCompletionStage() { CompletableFuture completableFuture = new CompletableFuture<>(); this.setHandler(ar -> { @@ -510,7 +510,7 @@ public interface Future extends AsyncResult { * @param the result type * @return a Vert.x future that resolves when {@code completionStage} resolves */ - @GenIgnore(GenIgnore.PERMITTED_TYPE) + @GenIgnore static Future fromCompletionStage(CompletionStage completionStage) { Promise promise = Promise.promise(); completionStage.whenComplete((value, err) -> { @@ -533,7 +533,7 @@ public interface Future extends AsyncResult { * @param the result type * @return a Vert.x future that resolves when {@code completionStage} resolves */ - @GenIgnore(GenIgnore.PERMITTED_TYPE) + @GenIgnore static Future fromCompletionStage(CompletionStage completionStage, Context context) { Promise promise = ((ContextInternal) context).promise(); completionStage.whenComplete((value, err) -> {