From cc36aa993c7c7aedb5fc5c18dc829bd7a50ca9b3 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Mon, 18 Dec 2023 18:00:15 +0100 Subject: [PATCH] Disallow static import of `com.google.errorprone.{VisitorState,util.ASTHelpers}` members (#922) --- .../tech/picnic/errorprone/bugpatterns/NonStaticImport.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java index f913b93e09..8c5e2fa43a 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java @@ -61,6 +61,8 @@ public final class NonStaticImport extends BugChecker implements CompilationUnit ImmutableSet.of( "com.google.common.base.Strings", "com.google.errorprone.BugCheckerRefactoringTestHelper.TestMode", + "com.google.errorprone.VisitorState", + "com.google.errorprone.util.ASTHelpers", "java.time.Clock", "java.time.ZoneOffset");