Replaced Usage of PathUtil.jarFileToVirtualFile() to PathUtil.jarFileOrDirectoryToVirtualFile(), removed the former.
This commit is contained in:
@@ -118,14 +118,6 @@ public class PathUtil {
|
||||
return roots;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static VirtualFile jarFileToVirtualFile(@NotNull File file) {
|
||||
if (!file.exists() || !file.isFile()) {
|
||||
throw new IllegalStateException("file must exist and be regular to be converted to virtual file: " + file);
|
||||
}
|
||||
return VirtualFileManager.getInstance().findFileByUrl("jar://" + file.getPath() + "!/");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public static VirtualFile jarFileOrDirectoryToVirtualFile(@NotNull File file) {
|
||||
if (file.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user