Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-01-29 03:50:51 -0500
committerAlexander Kurtakov2019-01-31 12:19:59 -0500
commit2fca533751d15cc7ad93a18b31c5857786bed629 (patch)
treee0df831bd9add6684dcb54f99ec41d1bd4529b54
parente32ab4df52f0e567259825c63bd4312f69be1781 (diff)
downloadrt.equinox.p2-2fca533751d15cc7ad93a18b31c5857786bed629.tar.gz
rt.equinox.p2-2fca533751d15cc7ad93a18b31c5857786bed629.tar.xz
rt.equinox.p2-2fca533751d15cc7ad93a18b31c5857786bed629.zip
Use .class access for IArtifactRepositoryManager and
IMetadataRepositoryManager As getService is generified, we should also use it. Change-Id: Ia3377dff485a10d5496b91cd4dcb5b50745fbd66 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/Activator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/Activator.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/Activator.java
index 79d93f207..a34fb4530 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/Activator.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/Activator.java
@@ -46,11 +46,11 @@ public class Activator implements BundleActivator {
}
public static IArtifactRepositoryManager getArtifactRepositoryManager() {
- return (IArtifactRepositoryManager) ServiceHelper.getService(context, IProvisioningAgent.class).getService(IArtifactRepositoryManager.SERVICE_NAME);
+ return ServiceHelper.getService(context, IProvisioningAgent.class).getService(IArtifactRepositoryManager.class);
}
public static IMetadataRepositoryManager getMetadataRepositoryManager() {
- return (IMetadataRepositoryManager) ServiceHelper.getService(context, IProvisioningAgent.class).getService(IMetadataRepositoryManager.SERVICE_NAME);
+ return ServiceHelper.getService(context, IProvisioningAgent.class).getService(IMetadataRepositoryManager.class);
}
public static URI getDefaultRepositoryLocation(Object object, String repositoryName) {

Back to the top