Class PriorityAdjuster


  • public class PriorityAdjuster
    extends java.lang.Object
    • Constructor Detail

      • PriorityAdjuster

        public PriorityAdjuster​(java.util.Map<java.lang.String,​java.lang.String> adjustments)
    • Method Detail

      • checkTarget

        private static java.lang.String checkTarget​(java.lang.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