diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java index 6c49792fb8..a19cfd2327 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ReactorRules.java @@ -474,6 +474,11 @@ Flux after( * Flux}. */ abstract static class MonoFlatMapToFlux { + // XXX: I'd be more expressive if this `@Placeholder` were replaced with a `Function>` 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>`, which doesn't match. Find a solution. @Placeholder(allowsIdentity = true) abstract Mono transformation(@MayOptionallyUse T value);