Class PriorityAdjuster

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

public class PriorityAdjuster extends Object
  • Field Details

  • Constructor Details

    • PriorityAdjuster

      public PriorityAdjuster(Map<String,String> adjustments)
  • Method Details

    • checkTarget

      private static String checkTarget(String adjustmentTarget)
    • adjustPriority

      BugInstance adjustPriority(BugInstance bugInstance)
      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

      public int adjustForDetector(BugInstance bugInstance)
      Adjust priority if the factory was forcibly enabled by ExecutionPlan although the user did not select it.
      Parameters:
      bugInstance -
      Returns:
      adjusted bug priority
    • setFactoryChooser

      public void setFactoryChooser(@NonNull DetectorFactoryChooser factoryChooser)
      Set the factory chooser used by ExecutionPlan
      Parameters:
      factoryChooser - the factory chooser, never null