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 a6d7528efd..f71729bb24 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 @@ -1772,6 +1772,9 @@ StepVerifier.FirstStep after(Flux flux) { * Prefer {@link StepVerifier.LastStep#verify()} over a dangling {@link * StepVerifier#verifyThenAssertThat()}. */ + // XXX: This rule may break existing code. We want to explicitly nudge towards using {@link + // StepVerifier.Step#assertNext(Consumer)} or {@link StepVerifier.Step#expectNext(Object)} + // together with {@link Step#verifyComplete()}. static final class StepVerifierVerify { @BeforeTemplate StepVerifier.Assertions before(StepVerifier stepVerifier) {