Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-11-25 16:44:39 -0500
committerrelves2009-11-25 16:44:39 -0500
commit7eac740e3cb1005806c795dde4f7f0ac7fe34e94 (patch)
treeffb75748b51f567041fb4965e270588d7191bac9 /org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn
parent89815bf11a7b49fd2d241ae96d8a38a2325cee1b (diff)
downloadorg.eclipse.mylyn.tasks-7eac740e3cb1005806c795dde4f7f0ac7fe34e94.tar.gz
org.eclipse.mylyn.tasks-7eac740e3cb1005806c795dde4f7f0ac7fe34e94.tar.xz
org.eclipse.mylyn.tasks-7eac740e3cb1005806c795dde4f7f0ac7fe34e94.zip
NEW - bug 281711: produce Java API for OSLC CM 1.0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=281711
Diffstat (limited to 'org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn')
-rw-r--r--org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java5
-rw-r--r--org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceLabelProvider.java1
2 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
index 0277ea251..7e78208b3 100644
--- a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
+++ b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceDiscoveryProvider.java
@@ -67,9 +67,10 @@ public class OslcServiceDiscoveryProvider implements ITreeContentProvider {
return manager.mayHaveChildren(element);
}
+ @SuppressWarnings("unchecked")
public Object[] getElements(Object inputElement) {
- if (inputElement instanceof List) {
- List<OslcServiceProvider> rootProviders = ((List) inputElement);
+ if (inputElement instanceof List<?>) {
+ List<OslcServiceProvider> rootProviders = (List<OslcServiceProvider>) inputElement;
Object[] result = new Object[rootProviders.size()];
for (int x = 0; x < rootProviders.size(); x++) {
result[x] = new ServiceProviderCatalogWrapper(rootProviders.get(x));
diff --git a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceLabelProvider.java b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceLabelProvider.java
index 7a53da4eb..e0dbc5aec 100644
--- a/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceLabelProvider.java
+++ b/org.eclipse.mylyn.oslc.ui/src/org/eclipse/mylyn/internal/oslc/ui/OslcServiceLabelProvider.java
@@ -24,6 +24,7 @@ import org.eclipse.swt.graphics.Image;
/**
* @author Robert Elves
*/
+@SuppressWarnings("restriction")
public class OslcServiceLabelProvider extends LabelProvider {
@Override

Back to the top