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); } }