diff options
author | Alexander Kurtakov | 2019-01-23 12:47:06 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2019-01-23 13:15:16 +0000 |
commit | 01c280d99f64fb7c12c2283ab84e9ca655f11940 (patch) | |
tree | 1504bbd0bc86be597a0cf8849db388534f0b9a69 | |
parent | e8dbcc1f420471e3e4a5e8a73adf54ade5633e8d (diff) | |
download | rt.equinox.p2-01c280d99f64fb7c12c2283ab84e9ca655f11940.tar.gz rt.equinox.p2-01c280d99f64fb7c12c2283ab84e9ca655f11940.tar.xz rt.equinox.p2-01c280d99f64fb7c12c2283ab84e9ca655f11940.zip |
Bug 542420 - Offer <T> T getService(Class<T> key) in IProvisioningAgent
getSimpleName is not enough to uniquely identify class file and all the
implementors use getName as key. Change accordingly.
Change-Id: I1d0294f290df2496849aa1ab75d82f8b5163898f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r-- | bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java index 5181955e0..b7ef6d969 100644 --- a/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java +++ b/bundles/org.eclipse.equinox.p2.core/src/org/eclipse/equinox/internal/p2/core/ProvisioningAgent.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2017 IBM Corporation and others. + * Copyright (c) 2009, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -84,7 +84,7 @@ public class ProvisioningAgent implements IProvisioningAgent, ServiceTrackerCust @SuppressWarnings("unchecked") @Override public <T> T getService(Class<T> key) { - return (T) getService(key.getSimpleName()); + return (T) getService(key.getName()); } private void checkRunning() { |