Class WarningSuppressor

java.lang.Object
edu.umd.cs.findbugs.WarningSuppressor
All Implemented Interfaces:
Matcher
Direct Known Subclasses:
ClassWarningSuppressor, PackageWarningSuppressor

public abstract class WarningSuppressor extends Object implements Matcher
  • Field Details

    • USELESS_SUPPRESSION_ABB

      protected static final String USELESS_SUPPRESSION_ABB
      See Also:
    • PRIORITY

      protected static final int PRIORITY
      See Also:
    • bugPattern

      protected final String bugPattern
    • matchType

      protected final edu.umd.cs.findbugs.annotations.SuppressMatchType matchType
  • Constructor Details

    • WarningSuppressor

      protected WarningSuppressor(String bugPattern, edu.umd.cs.findbugs.annotations.SuppressMatchType matchType)
  • Method Details

    • match

      public boolean match(BugInstance bugInstance)
      Description copied from interface: Matcher
      Determine whether or not the given BugInstance has the feature this Matcher tests for.
      Specified by:
      match in interface Matcher
      Parameters:
      bugInstance - the BugInstance
      Returns:
      true if the BugInstance matches, false if not
    • isUselessSuppressionReportable

      public boolean isUselessSuppressionReportable()
      Returns:
      true if useless suppressions should be reported.
    • buildUselessSuppressionBugInstance

      public abstract BugInstance buildUselessSuppressionBugInstance(UselessSuppressionDetector detector)
    • writeXML

      public void writeXML(XMLOutput xmlOutput, boolean disabled) throws IOException
      Specified by:
      writeXML in interface Matcher
      Throws:
      IOException