Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBJ Hargrave2013-05-16 20:20:41 +0000
committerBJ Hargrave2013-05-22 20:57:48 +0000
commit25139a28c94158b7acd3a81fee2d712b1d9b6def (patch)
treecb57b994e2844b6d1755844614b39ad846b0f9e3 /bundles
parentd68069ae33ca988ddceb36a55e5e8c2bb299e8e5 (diff)
downloadrt.equinox.framework-25139a28c94158b7acd3a81fee2d712b1d9b6def.tar.gz
rt.equinox.framework-25139a28c94158b7acd3a81fee2d712b1d9b6def.tar.xz
rt.equinox.framework-25139a28c94158b7acd3a81fee2d712b1d9b6def.zip
Suppress deprecation warnings for EventHook
The framework implementation must support the deprecated EventHook. Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.java
index 312f518ab..6448300a2 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.java
@@ -36,6 +36,7 @@ public class ServiceRegistry {
public static final int SERVICEEVENT = 3;
static final String findHookName = FindHook.class.getName();
+ @SuppressWarnings("deprecation")
static final String eventHookName = EventHook.class.getName();
static final String eventListenerHookName = EventListenerHook.class.getName();
static final String listenerHookName = ListenerHook.class.getName();
@@ -1167,6 +1168,7 @@ public class ServiceRegistry {
Debug.println("notifyServiceEventHooks(" + event.getType() + ":" + event.getServiceReference() + "," + result + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
notifyHooksPrivileged(new HookContext() {
+ @SuppressWarnings("deprecation")
public void call(Object hook, ServiceRegistration<?> hookRegistration) throws Exception {
if (hook instanceof EventHook) {
((EventHook) hook).event(event, result);

Back to the top