Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorMarc Khouzam2015-06-11 10:55:26 -0400
committerMarc Khouzam2015-06-11 10:55:26 -0400
commitd997a7c313290dfcdcab5ff382435950ff620e03 (patch)
treea246e43cf2f16b225296ecb8912607d2eb37fd7f /dsf
parent26bef5d3212c24dca5fc5ff0816728f59c247bbf (diff)
downloadorg.eclipse.cdt-d997a7c313290dfcdcab5ff382435950ff620e03.tar.gz
org.eclipse.cdt-d997a7c313290dfcdcab5ff382435950ff620e03.tar.xz
org.eclipse.cdt-d997a7c313290dfcdcab5ff382435950ff620e03.zip
Bug 317173 - Added generics
Change-Id: I9387aa408f43cb34e93182286e5a1f5f281ca418 Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfServicesTracker.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfServicesTracker.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfServicesTracker.java
index 23906b0dcd..d817e7d016 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfServicesTracker.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/service/DsfServicesTracker.java
@@ -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;

Back to the top