Skip to content

Commit

Permalink
Adding exempting method annotations
Browse files Browse the repository at this point in the history
Fixes #2946

PiperOrigin-RevId: 566522379
  • Loading branch information
sergeykad authored and Error Prone Team committed Sep 19, 2023
1 parent 70ac504 commit c9726da
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ public final class UnusedMethod extends BugChecker implements CompilationUnitTre
private static final ImmutableSet<String> 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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit c9726da

Please sign in to comment.