From 8a913b785d5baf9d756982f69bee1aaea9c5b099 Mon Sep 17 00:00:00 2001 From: Austin Richardson Date: Fri, 8 Dec 2023 10:30:02 +0100 Subject: [PATCH] StaticImport add `com.fasterxml.jackson.annotation.{JsonFormat.Shape,JsonInclude.Include,JsonProperty.Access}` --- .../java/tech/picnic/errorprone/bugpatterns/StaticImport.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StaticImport.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StaticImport.java index 7bba20c7b9a..8eb703f76df 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StaticImport.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/StaticImport.java @@ -58,6 +58,9 @@ public final class StaticImport extends BugChecker implements MemberSelectTreeMa static final ImmutableSet STATIC_IMPORT_CANDIDATE_TYPES = ImmutableSet.of( "com.fasterxml.jackson.annotation.JsonCreator.Mode", + "com.fasterxml.jackson.annotation.JsonFormat.Shape", + "com.fasterxml.jackson.annotation.JsonInclude.Include", + "com.fasterxml.jackson.annotation.JsonProperty.Access", "com.google.common.base.Preconditions", "com.google.common.base.Predicates", "com.google.common.base.Verify",