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 0a323cc36e..977248a2d8 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 @@ -100,7 +100,7 @@ Mono after(T value) { } /** Prefer {@link Mono#justOrEmpty(Object)} over more contrived alternatives. */ - static final class MonoJustOrEmptyObject<@Nullable T> { + static final class MonoJustOrEmptyObject { @BeforeTemplate Mono before(T value) { return Mono.justOrEmpty(Optional.ofNullable(value));