diff options
author | BJ Hargrave | 2013-05-16 20:20:41 +0000 |
---|---|---|
committer | BJ Hargrave | 2013-05-22 20:57:48 +0000 |
commit | 25139a28c94158b7acd3a81fee2d712b1d9b6def (patch) | |
tree | cb57b994e2844b6d1755844614b39ad846b0f9e3 /bundles | |
parent | d68069ae33ca988ddceb36a55e5e8c2bb299e8e5 (diff) | |
download | rt.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.java | 2 |
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); |