Cleanup: Use foreach whenever is possible

This commit is contained in:
Mathis Chenuet
2015-01-25 18:36:39 +00:00
committed by Laurent Clouet
parent c6dafb3bf6
commit 3ea4107dc1
4 changed files with 12 additions and 13 deletions

View File

@@ -155,8 +155,8 @@ public class Utils {
if (directory_.isDirectory()) {
File[] list = directory_.listFiles();
if (list != null) {
for (int i = 0; i < list.length; i++) {
double max1 = lastModificationTime(list[i]);
for (File aFile : list) {
double max1 = lastModificationTime(aFile);
if (max1 > max) {
max = max1;
}