예제 #1
0
 private void flaggAllAsNew(final List<Item> newFindings) {
   for (Item item : newFindings) {
     if (item.getSeverity().getPenalty() > 0 && item.getSeverity() != Severity.COVERAGE) {
       flagAsNew(item);
     }
   }
 }
예제 #2
0
 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);
   }
 }
예제 #3
0
 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();
     }
   }
 }