From bb69636bb27d5bef8b4fa303cf308f1901a96ecb Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Wed, 25 Dec 2024 13:43:28 +0100 Subject: [PATCH] Forgot this one :D --- .../java/tech/picnic/errorprone/refasterrules/StringRules.java | 1 + 1 file changed, 1 insertion(+) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/StringRules.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/StringRules.java index 2ae04b740c..c3706dd0d9 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/StringRules.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/StringRules.java @@ -32,6 +32,7 @@ private StringRules() {} // XXX: Now that we build with JDK 15+, this rule can be generalized to cover all `CharSequence` // subtypes. This does require a mechanism (perhaps an annotation, or a separate Maven module) to // make sure that non-String expressions are rewritten only if client code also targets JDK 15+. + @SuppressWarnings("CharSequenceIsEmpty" /* This is a more specific template. */) static final class StringIsEmpty { @BeforeTemplate boolean before(String str) {