From 5fbb0636aab3eae783fe2e5155e59fe9b87adc00 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Mon, 15 Jul 2024 09:53:49 +0200 Subject: [PATCH] Suppress new SonarCloud warning (#1248) --- .../java/tech/picnic/errorprone/refasterrules/EqualityRules.java | 1 + 1 file changed, 1 insertion(+) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/EqualityRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/EqualityRules.java index 6f5da60794..dcce6aa04f 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/EqualityRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/EqualityRules.java @@ -52,6 +52,7 @@ Predicate before(T e) { } @AfterTemplate + @SuppressWarnings("java:S1698" /* Reference comparison is valid for enums. */) Predicate after(T e) { return v -> v == e; }