1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-31 21:05:37 +02:00

Bug 326233 - DsfSession doesn't compile against 3.7

This commit is contained in:
Pawel Piech 2010-09-27 20:48:21 +00:00
parent f9418dae7d
commit 159c91c678

View file

@ -459,7 +459,12 @@ public class DsfSession
@ThreadSafe @ThreadSafe
public int hashCode() { return fId.hashCode(); } public int hashCode() { return fId.hashCode(); }
private void doDispatchEvent(Object event, Dictionary<?,?> serviceProperties) { private void doDispatchEvent(Object event, Dictionary<?,?> _serviceProperties) {
// Need to cast to dictionary with String keys to satisfy OSGI in platform 3.7.
// Bug 326233
@SuppressWarnings("unchecked")
Dictionary<String,?> serviceProperties = (Dictionary<String,?>)_serviceProperties;
// Build a list of listeners; // Build a list of listeners;
SortedMap<ListenerEntry,List<Method>> listeners = new TreeMap<ListenerEntry,List<Method>>(new Comparator<ListenerEntry>() { SortedMap<ListenerEntry,List<Method>> listeners = new TreeMap<ListenerEntry,List<Method>>(new Comparator<ListenerEntry>() {
public int compare(ListenerEntry o1, ListenerEntry o2) { public int compare(ListenerEntry o1, ListenerEntry o2) {