Class PriorityAdjuster
java.lang.Object
edu.umd.cs.findbugs.PriorityAdjuster
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map<String, PriorityAdjustment> private DetectorFactoryChooser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadjustForDetector(BugInstance bugInstance) Adjust priority if the factory was forcibly enabled byExecutionPlanalthough the user did not select it.(package private) BugInstanceadjustPriority(BugInstance bugInstance) Returns an instance with adjusted priority.private static StringcheckTarget(String adjustmentTarget) voidsetFactoryChooser(@NonNull DetectorFactoryChooser factoryChooser) Set the factory chooser used byExecutionPlan
-
Field Details
-
adjustments
Map<String, PriorityAdjustment> adjustments -
factoryChooser
-
-
Constructor Details
-
PriorityAdjuster
-
-
Method Details
-
checkTarget
-
adjustPriority
Returns an instance with adjusted priority. If no adjustment is necessary, the original instance is returned. Otherwise, a cloned instance is returned with an adjusted priority value.- Parameters:
bugInstance- the bug instance to adjust- Returns:
- the cloned and changed bug instance, or the original one in case that no change is necessary
-
adjustForDetector
Adjust priority if the factory was forcibly enabled byExecutionPlanalthough the user did not select it.- Parameters:
bugInstance-- Returns:
- adjusted bug priority
-
setFactoryChooser
Set the factory chooser used byExecutionPlan- Parameters:
factoryChooser- the factory chooser, never null
-