Skip to content

Commit

Permalink
Fix deprecated URL constructor usage in JavaTestPlugin
Browse files Browse the repository at this point in the history
Rely on bundle.getEntry to do the whole resolving rather than splitting
it in two.
  • Loading branch information
akurtakov committed Jan 14, 2025
1 parent 5ef64d0 commit ff239f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private static void waitForAutoBuild() {
public File getFileInPlugin(IPath path) {
try {
Bundle bundle = getDefault().getBundle();
URL installURL= new URL(bundle.getEntry("/"), path.toString());
URL installURL = bundle.getEntry("/" + path.toString());
URL localURL= FileLocator.toFileURL(installURL);//Platform.asLocalURL(installURL);
return new File(localURL.getFile());
} catch (IOException e) {
Expand Down

0 comments on commit ff239f3

Please sign in to comment.