private void flaggAllAsNew(final List<Item> newFindings) { for (Item item : newFindings) { if (item.getSeverity().getPenalty() > 0 && item.getSeverity() != Severity.COVERAGE) { flagAsNew(item); } } }
private void addAsOld(List<Item> newFindings, Item item) { if (item.getSeverity().getPenalty() > 0 && item.getSeverity() != Severity.COVERAGE) { item.setSeverity(Severity.OK); item.unsetNew(); item.setOld(true); newFindings.add(item); } }
private void filterLowSeverity(final List<Item> newFindings) { final Iterator<Item> i = newFindings.iterator(); while (i.hasNext()) { final Item item = i.next(); if (item.getSeverity().getPenalty() == 0 || item.getSeverity() == Severity.COVERAGE) { i.remove(); } } }