From 8aef4fff64c0ba7fcd28a2c7df7ff3b0c87ed352 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 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; }