diff options
author | John Arthorne | 2010-11-03 17:29:57 +0000 |
---|---|---|
committer | John Arthorne | 2010-11-03 17:29:57 +0000 |
commit | d51232370d9612b69ade370242fe8ef77827595f (patch) | |
tree | ec140e93cd83b77c54ab1fefd44f1d756fbd2dd2 /bundles/org.eclipse.equinox.p2.repository.tools | |
parent | 54d89d1011dafa556004d55215e3712c5e567026 (diff) | |
download | rt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.tar.gz rt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.tar.xz rt.equinox.p2-d51232370d9612b69ade370242fe8ef77827595f.zip |
Fixed compiler warnings
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.repository.tools')
-rw-r--r-- | bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java index 6f4db174f..6b3ee5d36 100644 --- a/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java +++ b/bundles/org.eclipse.equinox.p2.repository.tools/src/org/eclipse/equinox/p2/internal/repository/tools/AbstractApplication.java @@ -58,17 +58,17 @@ public abstract class AbstractApplication { private void setupAgent() throws ProvisionException { //note if we ever wanted these applications to act on a different agent than //the currently running system we would need to set it here - ServiceReference agentRef = Activator.getBundleContext().getServiceReference(IProvisioningAgent.SERVICE_NAME); + ServiceReference<IProvisioningAgent> agentRef = Activator.getBundleContext().getServiceReference(IProvisioningAgent.class); if (agentRef != null) { - agent = (IProvisioningAgent) Activator.getBundleContext().getService(agentRef); + agent = Activator.getBundleContext().getService(agentRef); if (agent != null) return; } //there is no agent around so we need to create one - ServiceReference providerRef = Activator.getBundleContext().getServiceReference(IProvisioningAgentProvider.SERVICE_NAME); + ServiceReference<IProvisioningAgentProvider> providerRef = Activator.getBundleContext().getServiceReference(IProvisioningAgentProvider.class); if (providerRef == null) throw new RuntimeException("No provisioning agent provider is available"); //$NON-NLS-1$ - IProvisioningAgentProvider provider = (IProvisioningAgentProvider) Activator.getBundleContext().getService(providerRef); + IProvisioningAgentProvider provider = Activator.getBundleContext().getService(providerRef); if (provider == null) throw new RuntimeException("No provisioning agent provider is available"); //$NON-NLS-1$ //obtain agent for currently running system |