From 467d23b18842d1de2ad8ec06f6e5f993e480cef3 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Sun, 14 Jul 2024 20:45:46 +0200 Subject: [PATCH] Suppress new SonarCloud warning --- .../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 6f5da60794a..dcce6aa04fa 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; }