From 5dcd73ba147799d5989a4d11fb4128d9aab28c38 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Tue, 20 Feb 2024 10:49:24 +0100 Subject: [PATCH] Tweaks --- .../picnic/errorprone/refasterrules/ReactorRules.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 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 2bd38ddccda..ab9da93f3c0 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 @@ -1207,17 +1207,18 @@ Flux after(Flux> flux, int prefetch) { } /** - * Don't unnecessarily convert {@link Collection} to {@link Stream} before creating {@link Flux}. + * Don't unnecessarily convert a {@link Collection} to a {@link Stream} before creating a {@link + * Flux}. */ static final class FluxFromIterable { @BeforeTemplate - Flux before(Collection c) { - return Flux.fromStream(c.stream()); + Flux before(Collection collection) { + return Flux.fromStream(collection.stream()); } @AfterTemplate - Flux after(Collection c) { - return Flux.fromIterable(c); + Flux after(Collection collection) { + return Flux.fromIterable(collection); } }