From a13f58c66375b5ca5b9415e491f6821f6237c6fa Mon Sep 17 00:00:00 2001 From: Stephane Maldini Date: Wed, 19 Apr 2017 14:44:30 +0100 Subject: [PATCH] backport: align generic of Mono.flatMapMany/onErrorMap to Flux partial backport of 08b9434 only modifying new public APIs --- src/main/java/reactor/core/publisher/FluxMapSignal.java | 4 ++-- .../java/reactor/core/publisher/FluxRetryPredicate.java | 8 ++++---- src/main/java/reactor/core/publisher/Mono.java | 4 ++-- .../java/reactor/core/publisher/MonoRetryPredicate.java | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/reactor/core/publisher/FluxMapSignal.java b/src/main/java/reactor/core/publisher/FluxMapSignal.java index 484db5bc48..51a3308633 100644 --- a/src/main/java/reactor/core/publisher/FluxMapSignal.java +++ b/src/main/java/reactor/core/publisher/FluxMapSignal.java @@ -37,7 +37,7 @@ final class FluxMapSignal extends FluxSource { final Function mapperNext; - final Function mapperError; + final Function mapperError; final Supplier mapperComplete; /** @@ -52,7 +52,7 @@ final class FluxMapSignal extends FluxSource { */ FluxMapSignal(Publisher source, Function mapperNext, - Function mapperError, + Function mapperError, Supplier mapperComplete) { super(source); if(mapperNext == null && mapperError == null && mapperComplete == null){ diff --git a/src/main/java/reactor/core/publisher/FluxRetryPredicate.java b/src/main/java/reactor/core/publisher/FluxRetryPredicate.java index 6c612dce23..f7eacff4e7 100644 --- a/src/main/java/reactor/core/publisher/FluxRetryPredicate.java +++ b/src/main/java/reactor/core/publisher/FluxRetryPredicate.java @@ -31,9 +31,9 @@ */ final class FluxRetryPredicate extends FluxSource { - final Predicate predicate; + final Predicate predicate; - FluxRetryPredicate(Flux source, Predicate predicate) { + FluxRetryPredicate(Flux source, Predicate predicate) { super(source); this.predicate = Objects.requireNonNull(predicate, "predicate"); } @@ -56,7 +56,7 @@ static final class RetryPredicateSubscriber final Publisher source; - final Predicate predicate; + final Predicate predicate; volatile int wip; @SuppressWarnings("rawtypes") @@ -66,7 +66,7 @@ static final class RetryPredicateSubscriber long produced; RetryPredicateSubscriber(Publisher source, - Subscriber actual, Predicate predicate) { + Subscriber actual, Predicate predicate) { super(actual); this.source = source; this.predicate = predicate; diff --git a/src/main/java/reactor/core/publisher/Mono.java b/src/main/java/reactor/core/publisher/Mono.java index 4e585ef080..54a5974f4e 100644 --- a/src/main/java/reactor/core/publisher/Mono.java +++ b/src/main/java/reactor/core/publisher/Mono.java @@ -2049,7 +2049,7 @@ public final Flux flatMapMany(Function Flux flatMapMany(Function> mapperOnNext, - Function> mapperOnError, + Function> mapperOnError, Supplier> mapperOnComplete) { return Flux.onAssembly(new FluxFlatMap<>( @@ -2366,7 +2366,7 @@ public final Flux mergeWith(Publisher other) { * * @return a transformed {@link Mono} */ - public final Mono onErrorMap(Function mapper) { + public final Mono onErrorMap(Function mapper) { return onErrorResume(e -> Mono.error(mapper.apply(e))); } diff --git a/src/main/java/reactor/core/publisher/MonoRetryPredicate.java b/src/main/java/reactor/core/publisher/MonoRetryPredicate.java index b578c07400..51efb64e18 100644 --- a/src/main/java/reactor/core/publisher/MonoRetryPredicate.java +++ b/src/main/java/reactor/core/publisher/MonoRetryPredicate.java @@ -30,10 +30,10 @@ */ final class MonoRetryPredicate extends MonoSource { - final Predicate predicate; + final Predicate predicate; MonoRetryPredicate(Mono source, - Predicate predicate) { + Predicate predicate) { super(source); this.predicate = Objects.requireNonNull(predicate, "predicate"); }