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 ebab420c169..a3547881c61 100644 --- a/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java +++ b/core/src/main/java/com/google/errorprone/bugpatterns/UnusedMethod.java @@ -98,6 +98,13 @@ public final class UnusedMethod extends BugChecker implements CompilationUnitTre private static final String JUNIT_PARAMS_VALUE = "value"; private static final String JUNIT_PARAMS_ANNOTATION_TYPE = "junitparams.Parameters"; + /** + * Annotations that exempt methods from being considered unused. + * + *
Try to avoid adding more annotations here. Annotating these annotations with {@code @Keep}
+ * has the same effect; this list is chiefly for third-party annotations which cannot be
+ * annotated.
+ */
private static final ImmutableSet Try to avoid adding more annotations here. Annotating these annotations with {@code @Keep}
+ * has the same effect; this list is chiefly for third-party annotations which cannot be
+ * annotated.
+ */
private static final ImmutableSet Try to avoid adding more annotations here. Annotating these annotations with {@code @Keep}
+ * has the same effect; this list is chiefly for third-party annotations which cannot be
+ * annotated.
+ */
private static final ImmutableSet Try to avoid adding more annotations here. Annotating these annotations with {@code @Keep}
+ * has the same effect; this list is chiefly for third-party annotations which cannot be
+ * annotated.
*/
private static final ImmutableSet