Skip to content

Commit ff239f3

Browse files
committed
Fix deprecated URL constructor usage in JavaTestPlugin
Rely on bundle.getEntry to do the whole resolving rather than splitting it in two.
1 parent 5ef64d0 commit ff239f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.debug.tests/test plugin/org/eclipse/jdt/debug/testplugin/JavaTestPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private static void waitForAutoBuild() {
8989
public File getFileInPlugin(IPath path) {
9090
try {
9191
Bundle bundle = getDefault().getBundle();
92-
URL installURL= new URL(bundle.getEntry("/"), path.toString());
92+
URL installURL = bundle.getEntry("/" + path.toString());
9393
URL localURL= FileLocator.toFileURL(installURL);//Platform.asLocalURL(installURL);
9494
return new File(localURL.getFile());
9595
} catch (IOException e) {

0 commit comments

Comments
 (0)