[java] drops outdated JRT layout support

This commit is contained in:
Roman Shevchenko
2017-03-03 14:08:32 +01:00
parent 54e91d549e
commit 5296bc7b52
2 changed files with 1 additions and 2 deletions
@@ -74,7 +74,6 @@ class JrtHandler extends ArchiveHandler {
}
else {
File file = new File(path, "lib/jrt-fs.jar");
if (!file.exists()) file = new File(path, "jrt-fs.jar");
if (!file.exists()) throw new IOException("Missing provider: " + file);
URL url = file.toURI().toURL();
ClassLoader loader = new URLClassLoader(new URL[]{url}, null);
@@ -29,7 +29,7 @@ public abstract class JrtFileSystem extends ArchiveFileSystem {
public static final String SEPARATOR = URLUtil.JAR_SEPARATOR;
public static boolean isModularJdk(@NotNull String homePath) {
return new File(homePath, "lib/jrt-fs.jar").isFile() || new File(homePath, "jrt-fs.jar").isFile();
return new File(homePath, "lib/jrt-fs.jar").isFile();
}
public static boolean isRoot(@NotNull VirtualFile file) {