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 a19cfd2327..c99c77482a 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,11 +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. + // XXX: It would 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);