Class BugPcMap
java.lang.Object
edu.umd.cs.findbugs.BugPcMap
Stores a collection of
BugInstance and reports them similarly to BugAccumulator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Integer, BugInstance> private final Map<Integer, BugInstance> private final BugReporter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccumulateBug(BugInstance sourceLine, BytecodeScanningDetector visitor) voidTo be called when the visitor has seenConst.PUTSTATICorConst.PUTFIELD.voidReports accumulated bug instances to theBugReporterand clears itself.
-
Field Details
-
reporter
-
bugInstancesByPc
-
bugInstancesByNextPc
-
-
Constructor Details
-
BugPcMap
-
-
Method Details
-
accumulateBug
-
addFieldAnnotation
To be called when the visitor has seenConst.PUTSTATICorConst.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 theBugReporterand clears itself.
-