Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2010-10-04 16:59:44 +0000
committerJohn Arthorne2010-10-04 16:59:44 +0000
commitfdfa6363a847d135212385970259283890243fd0 (patch)
tree36b2417d822242d54d84a3c63c36b010900b0f4d /bundles/org.eclipse.equinox.p2.extensionlocation
parent66d60f2ea0d94f246c00f8dd827d6c64bb7b0a88 (diff)
downloadrt.equinox.p2-fdfa6363a847d135212385970259283890243fd0.tar.gz
rt.equinox.p2-fdfa6363a847d135212385970259283890243fd0.tar.xz
rt.equinox.p2-fdfa6363a847d135212385970259283890243fd0.zip
Fixed compiler warnings related to genericsv20101004
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.extensionlocation')
-rw-r--r--bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/Activator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/Activator.java b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/Activator.java
index c05ff6868..ac780a867 100644
--- a/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/Activator.java
+++ b/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/Activator.java
@@ -69,10 +69,10 @@ public class Activator implements BundleActivator {
}
public static IProvisioningAgent getCurrentAgent() {
- ServiceReference reference = bundleContext.getServiceReference(IProvisioningAgent.SERVICE_NAME);
+ ServiceReference<IProvisioningAgent> reference = bundleContext.getServiceReference(IProvisioningAgent.class);
if (reference == null)
return null;
- return (IProvisioningAgent) bundleContext.getService(reference);
+ return bundleContext.getService(reference);
}
public static IFileArtifactRepository getBundlePoolRepository() {

Back to the top