Cleanup: Use foreach whenever is possible

This commit is contained in:
Mathis Chenuet
2015-01-25 18:39:57 +00:00
committed by Laurent Clouet
parent 7f10281792
commit 741601712d

View File

@@ -100,9 +100,8 @@ public class Log {
public static synchronized void printCheckPoint(int point_) { public static synchronized void printCheckPoint(int point_) {
Log log = Log.getInstance(null); Log log = Log.getInstance(null);
ArrayList<String> logs = log.getForCheckPoint(point_); ArrayList<String> logs = log.getForCheckPoint(point_);
Iterator<String> it = logs.iterator(); for (String alog : logs) {
while (it.hasNext()) { System.out.println(alog);
System.out.println(it.next());
} }
} }
} }