From 365eee40fdc6d80160daf6e75ab80c8a2b4a341e Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Fri, 6 Oct 2023 22:00:46 +0200 Subject: [PATCH] Sort and improve Javadoc --- .../tech/picnic/errorprone/refasterrules/ReactorRules.java | 4 ++-- .../errorprone/refasterrules/ReactorRulesTestInput.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 83ab16d270..cd7c693ef2 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 @@ -426,15 +426,15 @@ Flux after(Flux flux, T object) { } } - /** Prefer {@link Flux#empty()} over more contrived ways of creating an empty flux. */ + /** Prefer {@link Flux#empty()} over more contrived alternatives. */ static final class FluxEmpty { @BeforeTemplate Flux before() { return Refaster.anyOf( - Flux.just(), Flux.concat(), Flux.concatDelayError(), Flux.firstWithSignal(), + Flux.just(), Flux.merge(), Flux.mergeSequential()); } diff --git a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java index 03ede41eaf..8d6800d2a3 100644 --- a/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java +++ b/error-prone-contrib/src/test/resources/tech/picnic/errorprone/refasterrules/ReactorRulesTestInput.java @@ -150,10 +150,10 @@ ImmutableSet> testFluxDefaultIfEmpty() { ImmutableSet> testFluxEmpty() { return ImmutableSet.of( - Flux.just(), Flux.concat(), Flux.concatDelayError(), Flux.firstWithSignal(), + Flux.just(), Flux.merge(), Flux.mergeSequential()); }