switch(bugInstance.getPriority()) { case Detector.LOW_PRIORITY: System.out.print("L "); break; case Detector.NORMAL_PRIORITY: System.out.print("M "); break; case Detector.HIGH_PRIORITY: System.out.print("H "); break; } System.out.println(bugInstance.getMessage());
printBug(bugInstance);
	public void finish() {		Iterator<BugInstance> i = bugCollection.iterator();		while (i.hasNext()) {			BugInstance bugInstance = i.next();			switch(bugInstance.getPriority()) {			case Detector.LOW_PRIORITY:				System.out.print("L ");				break;			case Detector.NORMAL_PRIORITY:				System.out.print("M ");				break;			case Detector.HIGH_PRIORITY:				System.out.print("H ");				break;			}			System.out.println(bugInstance.getMessage());		}	}