New code style. No functional changes.

This commit is contained in:
Harald Kuhr
2011-02-17 12:36:40 +01:00
parent 191643a36c
commit 43cc440e67
60 changed files with 1671 additions and 1665 deletions
@@ -685,28 +685,28 @@ public final class FileUtil {
// a file array, which may throw OutOfMemoryExceptions for
// large directories/in low memory situations
class DeleteFilesVisitor implements Visitor<File> {
private int mFailedCount = 0;
private IOException mException = null;
private int failedCount = 0;
private IOException exception = null;
public void visit(final File pFile) {
try {
if (!delete(pFile, true)) {
mFailedCount++;
failedCount++;
}
}
catch (IOException e) {
mFailedCount++;
if (mException == null) {
mException = e;
failedCount++;
if (exception == null) {
exception = e;
}
}
}
boolean succeeded() throws IOException {
if (mException != null) {
throw mException;
if (exception != null) {
throw exception;
}
return mFailedCount == 0;
return failedCount == 0;
}
}
DeleteFilesVisitor fileDeleter = new DeleteFilesVisitor();