Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2009-01-16 22:01:37 +0000
committerspingel2009-01-16 22:01:37 +0000
commitf118d9c30b77ff6fcd85c892cbb65747bbb52419 (patch)
treebe1e372975599eb2006ea5acde38dd2c6a5ba8a2 /org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard
parentf045882ce4b6b8feea29e23ee7d126b6d6acd511 (diff)
downloadorg.eclipse.mylyn.tasks-f118d9c30b77ff6fcd85c892cbb65747bbb52419.tar.gz
org.eclipse.mylyn.tasks-f118d9c30b77ff6fcd85c892cbb65747bbb52419.tar.xz
org.eclipse.mylyn.tasks-f118d9c30b77ff6fcd85c892cbb65747bbb52419.zip
fixed warnings
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
index 9340eddba..6e55e01f1 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
@@ -148,6 +148,7 @@ public class BugzillaProductPage extends WizardPage {
}
}
+ @SuppressWarnings("deprecation")
public void createControl(Composite parent) {
// create the composite to hold the widgets
Composite composite = new Composite(parent, SWT.NULL);
@@ -156,6 +157,7 @@ public class BugzillaProductPage extends WizardPage {
composite.setLayout(new GridLayout());
// create the list of bug reports
+ // TODO e3.5 move to new FilteredTree API
productList = new FilteredTree(composite, SWT.SINGLE | SWT.BORDER, new ComponentFilter());
productList.setLayoutData(GridDataFactory.swtDefaults().align(SWT.FILL, SWT.FILL).grab(true, true).hint(
SWT.DEFAULT, 200).create());
@@ -164,7 +166,7 @@ public class BugzillaProductPage extends WizardPage {
productViewer.setContentProvider(new ITreeContentProvider() {
public Object[] getChildren(Object parentElement) {
- if (parentElement instanceof Collection) {
+ if (parentElement instanceof Collection<?>) {
return ((Collection<?>) parentElement).toArray();
}
return null;

Back to the top