diff options
author | Lars Vogel | 2019-01-29 08:50:51 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-01-31 17:19:59 +0000 |
commit | 2fca533751d15cc7ad93a18b31c5857786bed629 (patch) | |
tree | e0df831bd9add6684dcb54f99ec41d1bd4529b54 | |
parent | e32ab4df52f0e567259825c63bd4312f69be1781 (diff) | |
download | rt.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.java | 4 |
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) { |