Class CheckExpectedWarnings

    • Constructor Detail

      • CheckExpectedWarnings

        public CheckExpectedWarnings​(BugReporter bugReporter)
    • 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)
      • makeWarning

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

        public void finishPass()
        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()
        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.