Class CheckExpectedWarnings

  • All Implemented Interfaces:
    Detector2, FirstPassDetector, NonReportingDetector, Priorities

    @Deprecated
    public class CheckExpectedWarnings
    extends java.lang.Object
    implements Detector2, NonReportingDetector
    Deprecated.
    The annotation based approach is useless for lambdas. Write expectations using edu.umd.cs.findbugs.test.matcher.BugInstanceMatcher matchers in test source directory
    Check uses of the ExpectWarning and NoWarning annotations. This is for internal testing of FindBugs (against spotbugsTestCases).
    Author:
    David Hovemeyer
    • Constructor Detail

      • CheckExpectedWarnings

        public CheckExpectedWarnings​(BugReporter bugReporter)
        Deprecated.
    • Method Detail

      • checkAnnotation

        public void checkAnnotation​(@CheckForNull
                                    java.lang.String bugCode,
                                    java.util.Collection<BugInstance> warnings,
                                    boolean expectWarnings,
                                    int priority,
                                    java.lang.Integer rank,
                                    java.lang.Integer num,
                                    java.lang.Object methodDescriptor,
                                    int minPriority,
                                    ClassDescriptor cd)
        Deprecated.
      • makeWarning

        public BugInstance makeWarning​(java.lang.String bugPattern,
                                       java.lang.Object descriptor,
                                       int priority,
                                       ClassDescriptor cd)
        Deprecated.
      • finishPass

        public void finishPass()
        Deprecated.
        Description copied from interface: Detector2
        This method is called at the end of the analysis pass.
        Specified by:
        finishPass in interface Detector2
      • getDetectorClassName

        public java.lang.String getDetectorClassName()
        Deprecated.
        Description copied from interface: Detector2
        Get the name of the detector class.
        Specified by:
        getDetectorClassName in interface Detector2
        Returns:
        the name of the detector class.