Cleanup: Use foreach whenever is possible
This commit is contained in:
committed by
Laurent Clouet
parent
7f10281792
commit
741601712d
@@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user