Use for each when Iterator not needed

This commit is contained in:
str4d
2013-11-28 11:56:54 +00:00
parent f112baac48
commit efe3bd2c05
21 changed files with 56 additions and 125 deletions

View File

@ -7,7 +7,6 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeSet;
@ -417,8 +416,7 @@ public class SummaryHelper extends HelperBase {
Collections.sort(clients, new AlphaComparator());
buf.append("<table>");
for (Iterator<Destination> iter = clients.iterator(); iter.hasNext(); ) {
Destination client = iter.next();
for (Destination client : clients) {
String name = getName(client);
Hash h = client.calculateHash();