mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[maven] use nio to check that file exists
GitOrigin-RevId: 1312f6a981d837999efe33e625163fd705d86ffd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
51c992cebb
commit
c8532f166d
+2
-1
@@ -32,6 +32,7 @@ import org.jetbrains.jps.model.java.JpsJavaExtensionService;
|
||||
import org.jetbrains.jps.model.module.JpsModuleSourceRootType;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Arrays;
|
||||
import java.util.Set;
|
||||
@@ -192,7 +193,7 @@ public class MavenRootModelAdapterLegacyImpl implements MavenRootModelAdapterInt
|
||||
}
|
||||
|
||||
private boolean exists(String path) {
|
||||
return VfsUtil.findFile(Paths.get(toPath(path).getPath()), true) != null;
|
||||
return Files.exists(Paths.get(toPath(path).getPath()));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user