mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 01:15:29 +02:00
Bug 317173 - Added generics
Change-Id: I9387aa408f43cb34e93182286e5a1f5f281ca418 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
26bef5d321
commit
d997a7c313
1 changed files with 2 additions and 3 deletions
|
@ -166,8 +166,7 @@ public class DsfServicesTracker {
|
|||
* session-ID
|
||||
* @return OSGI service reference object to the desired service, null if not found
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public ServiceReference getServiceReference(Class serviceClass, String filter) {
|
||||
public ServiceReference<?> getServiceReference(Class<?> serviceClass, String filter) {
|
||||
if (fDisposed) {
|
||||
return null;
|
||||
}
|
||||
|
@ -185,7 +184,7 @@ public class DsfServicesTracker {
|
|||
}
|
||||
|
||||
try {
|
||||
ServiceReference[] references = fBundleContext.getServiceReferences(key.fClassName, key.fFilter);
|
||||
ServiceReference<?>[] references = fBundleContext.getServiceReferences(key.fClassName, key.fFilter);
|
||||
assert references == null || references.length <= 1;
|
||||
if (references == null || references.length == 0) {
|
||||
return null;
|
||||
|
|
Loading…
Add table
Reference in a new issue