From c068634b5e6203779212f66493c3be3f64cf8ca5 Mon Sep 17 00:00:00 2001 From: Xiaojian Wang Date: Mon, 22 Jul 2024 13:25:16 +0000 Subject: [PATCH] Exempt com.fasterxml.jackson.annotation.JsonProperty from UnusedVariable --- .../java/com/google/errorprone/bugpatterns/UnusedVariable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java index 0e8f41a500e..87fa2016355 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedVariable.java @@ -140,6 +140,7 @@ public final class UnusedVariable extends BugChecker implements CompilationUnitT */ private static final ImmutableSet EXEMPTING_VARIABLE_ANNOTATIONS = ImmutableSet.of( + "com.fasterxml.jackson.annotation.JsonProperty", "javax.persistence.Basic", "javax.persistence.Column", "javax.persistence.Id",