Class CalledMethods

All Implemented Interfaces:
Detector, FirstPassDetector, NonReportingDetector, Priorities, org.apache.bcel.classfile.Visitor

public class CalledMethods extends BytecodeScanningDetector implements NonReportingDetector
Detector to find private methods that are never called.
  • Constructor Details

    • CalledMethods

      public CalledMethods(BugReporter bugReporter)
  • Method Details

    • sawOpcode

      public void sawOpcode(int seen)
      Overrides:
      sawOpcode in class DismantleBytecode
    • report

      public void report()
      Description copied from interface: Detector
      This method is called after all classes to be visited. It should be used by any detectors which accumulate information over all visited classes to generate results.
      Specified by:
      report in interface Detector
      Overrides:
      report in class BytecodeScanningDetector