From 33020463a8abcec541fdd1abd63d550f3e993b44 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 5b97b940731..2f151fe0724 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 @@ -391,15 +391,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 8c0b88b8fee..b1a87715d90 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 @@ -138,10 +138,10 @@ ImmutableSet> testFluxDefaultIfEmpty() { ImmutableSet> testFluxEmpty() { return ImmutableSet.of( - Flux.just(), Flux.concat(), Flux.concatDelayError(), Flux.firstWithSignal(), + Flux.just(), Flux.merge(), Flux.mergeSequential()); }