Skip to content

Commit

Permalink
revert getResource back
Browse files Browse the repository at this point in the history
  • Loading branch information
XenoAmess committed Jun 20, 2020
1 parent 65969ec commit 46a570f
Showing 1 changed file with 13 additions and 4 deletions.
Expand Up @@ -6065,14 +6065,23 @@ private URL getResource( final List<String> classPath, final String resource )
getLog().error( "MalformedURLException: " + e.getMessage() );
}
}
try ( URLClassLoader javadocClassLoader = new URLClassLoader( urls.toArray( new URL[urls.size()] ), null ) )

URLClassLoader javadocClassLoader = new URLClassLoader( urls.toArray( new URL[urls.size()] ), null );
try
{
return javadocClassLoader.getResource( resource );
} catch ( IOException e )
}
finally
{
// ignore
try
{
javadocClassLoader.close();
}
catch ( IOException ex )
{
// ignore
}
}
return null;
}

/**
Expand Down

0 comments on commit 46a570f

Please sign in to comment.