Skip to content

Commit

Permalink
resolve warning re PackageAdmin, can now use "official" API
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-herrmann committed Oct 12, 2024
1 parent 50229da commit cea56c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ protected void setUpAnnotationLib() throws IOException {
}

protected String getAnnotationLibPath() throws IOException {
Bundle[] bundles = org.eclipse.jdt.core.tests.compiler.Activator.getPackageAdmin().getBundles("org.eclipse.jdt.annotation", "[2.0.0,3.0.0)");
File bundleFile = FileLocator.getBundleFileLocation(bundles[0]).get();
Bundle bundle = Platform.getBundle("org.eclipse.jdt.annotation");
File bundleFile = FileLocator.getBundleFileLocation(bundle).get();
if (bundleFile.isDirectory())
return bundleFile.getPath()+"/bin";
else
Expand Down

0 comments on commit cea56c5

Please sign in to comment.