Class BugPcMap


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

      • bugInstancesByPc

        private final java.util.Map<java.lang.Integer,​BugInstance> bugInstancesByPc
      • bugInstancesByNextPc

        private final java.util.Map<java.lang.Integer,​BugInstance> bugInstancesByNextPc
    • Constructor Detail

    • Method Detail

      • 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.