Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.mylyn.oslc.ui')
-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