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; }