From b48264fd1d2a7946bcff251929c9cf0501af84cf Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sun, 24 Mar 2024 09:26:06 +0100 Subject: [PATCH] Tweak --- .../tech/picnic/errorprone/refasterrules/OptionalRules.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/OptionalRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/OptionalRules.java index b8da9ac8c3f..cf1c2cb3ce6 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/OptionalRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/OptionalRules.java @@ -360,7 +360,7 @@ Optional after(Optional optional, Function { @BeforeTemplate - @SuppressWarnings("NestedOptionals" /* Auto-fix for the `NestedOptionals` check. */) + @SuppressWarnings("NestedOptionals") Optional before(Optional optional1, Optional optional2) { // XXX: Note that rewriting the first and third variant will change the code's behavior if // `optional2` has side-effects. @@ -386,7 +386,7 @@ Optional after(Optional optional1, Optional optional2) { */ static final class OptionalIdentity { @BeforeTemplate - @SuppressWarnings("NestedOptionals" /* Auto-fix for the `NestedOptionals` check. */) + @SuppressWarnings("NestedOptionals") Optional before(Optional optional, Comparator comparator) { return Refaster.anyOf( optional.or(Refaster.anyOf(() -> Optional.empty(), Optional::empty)),