Class BugPcMap

java.lang.Object
edu.umd.cs.findbugs.BugPcMap

public class BugPcMap extends Object
Stores a collection of BugInstance and reports them similarly to BugAccumulator.
  • Field Details

  • Constructor Details

  • Method Details

    • accumulateBug

      public void accumulateBug(BugInstance sourceLine, BytecodeScanningDetector visitor)
    • addFieldAnnotation

      public void addFieldAnnotation(BytecodeScanningDetector visitor)
      To be called when the visitor has seen Const.PUTSTATIC or Const.PUTFIELD. If a bug instance was created at the previous PC a field annotation will be added.
      Parameters:
      visitor -
    • reportAccumulatedBugs

      public void reportAccumulatedBugs()
      Reports accumulated bug instances to the BugReporter and clears itself.