mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no need to throw an exception
This commit is contained in:
+2
-3
@@ -666,10 +666,9 @@ public class InstrumentationClassFinder {
|
||||
private ZipFile doGetZipFile() throws IOException {
|
||||
if (FILE_PROTOCOL.equals(myURL.getProtocol())) {
|
||||
String s = unescapePercentSequences(myURL.getFile().replace('/', File.separatorChar));
|
||||
if (!new File(s).exists()) {
|
||||
throw new FileNotFoundException(s);
|
||||
if (new File(s).exists()) {
|
||||
return new ZipFile(s);
|
||||
}
|
||||
return new ZipFile(s);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user