This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 40fefc7a64045bdf36534f0c216da17f7b886a64 Author: Mark Thomas <[email protected]> AuthorDate: Mon Jun 6 12:38:45 2022 +0100 Use new Java 11 method --- java/org/apache/juli/FileHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/org/apache/juli/FileHandler.java b/java/org/apache/juli/FileHandler.java index 92118f75c0..7ce7f8ffb6 100644 --- a/java/org/apache/juli/FileHandler.java +++ b/java/org/apache/juli/FileHandler.java @@ -25,7 +25,6 @@ import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.nio.file.DirectoryStream; -import java.nio.file.FileSystems; import java.nio.file.Files; import java.nio.file.Path; import java.security.AccessController; @@ -572,7 +571,7 @@ public class FileHandler extends Handler { } private Path getDirectoryAsPath() { - return FileSystems.getDefault().getPath(directory); + return Path.of(directory); } private String obtainDateFromPath(Path path) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
