Class SuppressWarningsWithoutExplanation

java.lang.Object
com.google.errorprone.bugpatterns.BugChecker
com.google.errorprone.bugpatterns.SuppressWarningsWithoutExplanation
All Implemented Interfaces:
BugChecker.CompilationUnitTreeMatcher, Suppressible, Serializable

public final class SuppressWarningsWithoutExplanation extends BugChecker implements BugChecker.CompilationUnitTreeMatcher
Finds occurrences of @SuppressWarnings where there is definitely no explanation for why it is safe.

The Google style guide mandates this for all suppressions; this is only matching on deprecation as a trial.

See Also:
  • Constructor Details

    • SuppressWarningsWithoutExplanation

      public SuppressWarningsWithoutExplanation()
    • SuppressWarningsWithoutExplanation

      public SuppressWarningsWithoutExplanation(boolean emitDummyFixes)
  • Method Details