public BugInstance(Detector detector, String type, int priority) { this(type, priority);  if (detector != null) {  DetectorFactory factory = DetectorFactoryCollection.instance().getFactoryByClassName(detector.getClass().getName()); if (factory != null) { this.priority += factory.getPriorityAdjustment(); if (this.priority < 0) this.priority = 0; } }
public BugInstance(String type, int priority) { this.type = type; this.priority = priority < Detector.HIGH_PRIORITY ? Detector.HIGH_PRIORITY : priority; annotationList = new ArrayList<BugAnnotation>(4); cachedHashCode = INVALID_HASH_CODE; annotationText = ""; activeIntervalCollection = "";
	public BugInstance(Detector detector, String type, int priority) {		this(type, priority);				if (detector != null) {			// Adjust priority if required			DetectorFactory factory =				DetectorFactoryCollection.instance().getFactoryByClassName(detector.getClass().getName());			if (factory != null) {				this.priority += factory.getPriorityAdjustment();				if (this.priority < 0)					this.priority = 0;			}		}				if (adjustExperimental && isExperimental())			this.priority = Detector.EXP_PRIORITY;	}