Skip to content

Commit

Permalink
Document MonoFlatMapToFlux Refaster rule limitation (PicnicSupermar…
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan202 authored Jan 24, 2023
1 parent a5b5f43 commit 3a94aad
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ Flux<S> after(
* Flux}.
*/
abstract static class MonoFlatMapToFlux<T, S> {
// XXX: It would be more expressive if this `@Placeholder` were replaced with a `Function<?
// super T, ? extends Mono<? extends S>>` parameter, so that compatible non-lambda expression
// arguments to `flatMapMany` are also matched. However, the type inferred for lambda and method
// reference expressions passed to `flatMapMany` appears to always be `Function<T, Publisher<?
// extends S>>`, which doesn't match. Find a solution.
@Placeholder(allowsIdentity = true)
abstract Mono<S> transformation(@MayOptionallyUse T value);

Expand Down

0 comments on commit 3a94aad

Please sign in to comment.