You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2020/11/11 16:25:43 UTC

[logging-log4j2] branch release-2.x updated: Use NIO API on NIO object.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 78b40de  Use NIO API on NIO object.
78b40de is described below

commit 78b40de37bf61177dea516803ab877dfd39e44e5
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Nov 11 11:25:38 2020 -0500

    Use NIO API on NIO object.
---
 .../logging/log4j/core/appender/rolling/RollingAppenderRestartTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderRestartTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderRestartTest.java
index bf8b39b..1c02ac9 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderRestartTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderRestartTest.java
@@ -73,7 +73,7 @@ public class RollingAppenderRestartTest {
 
     @AfterClass
     public static void tearDown() throws IOException {
-        if (DIR.toFile().exists()) {
+        if (Files.exists(DIR)) {
             PathUtils.deleteDirectory(DIR);
         }
     }