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_) {
|
||||
Log log = Log.getInstance(null);
|
||||
ArrayList<String> logs = log.getForCheckPoint(point_);
|
||||
Iterator<String> it = logs.iterator();
|
||||
while (it.hasNext()) {
|
||||
System.out.println(it.next());
|
||||
for (String alog : logs) {
|
||||
System.out.println(alog);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user