Fix ambiguous newFileSystem method when using Java 13.

This commit is contained in:
Seppe Volkaerts
2021-04-18 22:54:18 +02:00
parent d26d61f038
commit 6ac5643212

View File

@@ -48,7 +48,7 @@ public class FileSystemUtils {
.getProtectionDomain().getCodeSource().getLocation().getPath());
if (file.isFile()) { // jar
try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), null)) {
try (FileSystem fileSystem = FileSystems.newFileSystem(file.toPath(), (ClassLoader) null)) {
Path toVisit = fileSystem.getPath(path.toString());
if (Files.exists(toVisit)) {
consumer.accept(toVisit);