diff --git a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java index f2cc560f6dd..b1b7b3f61b7 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java @@ -101,6 +101,8 @@ public final class UnusedMethod extends BugChecker implements CompilationUnitTre private static final ImmutableSet EXEMPTING_METHOD_ANNOTATIONS = ImmutableSet.of( "com.fasterxml.jackson.annotation.JsonCreator", + "com.fasterxml.jackson.annotation.JsonProperty", + "com.fasterxml.jackson.annotation.JsonSetter", "com.fasterxml.jackson.annotation.JsonValue", "com.google.acai.AfterTest", "com.google.acai.BeforeSuite", @@ -133,6 +135,8 @@ public final class UnusedMethod extends BugChecker implements CompilationUnitTre "javax.persistence.PrePersist", "javax.persistence.PreRemove", "javax.persistence.PreUpdate", + "javax.validation.constraints.AssertFalse", + "javax.validation.constraints.AssertTrue", "org.apache.beam.sdk.transforms.DoFn.ProcessElement", "org.aspectj.lang.annotation.Pointcut", "org.aspectj.lang.annotation.After",