Repository: logging-log4j2 Updated Branches: refs/heads/master 9f3ce619f -> f21ec386f
Simplify. Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f21ec386 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f21ec386 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f21ec386 Branch: refs/heads/master Commit: f21ec386f68a2dee080fbd20fe1f7db8fb69588a Parents: 9f3ce61 Author: Gary Gregory <[email protected]> Authored: Thu Jun 23 19:55:48 2016 -0700 Committer: Gary Gregory <[email protected]> Committed: Thu Jun 23 19:55:48 2016 -0700 ---------------------------------------------------------------------- .../test/java/org/apache/logging/log4j/junit/CleanFolders.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f21ec386/log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFolders.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFolders.java b/log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFolders.java index 074ba33..65ad8eb 100644 --- a/log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFolders.java +++ b/log4j-core/src/test/java/org/apache/logging/log4j/junit/CleanFolders.java @@ -59,9 +59,7 @@ public class CleanFolders extends ExternalResource { try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(targetPath)) { for (final Path path : directoryStream) { fileName = path.toFile().getName(); - if (Files.exists(path)) { - Files.delete(path); - } + Files.deleteIfExists(path); } Files.delete(targetPath); } catch (final IOException e) {
