Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Daniel2013-12-09 19:06:07 +0000
committerKrzysztof Daniel2013-12-09 21:44:19 +0000
commita2344e5ad39e041ee5e822d8bddc4a71bdcd3c03 (patch)
treee003e05714768deb8df2940476e65c36a2c68bc1 /bundles
parent378ec6d34326ecb212502f19ecb57f85285cfa59 (diff)
downloadrt.equinox.p2-a2344e5ad39e041ee5e822d8bddc4a71bdcd3c03.tar.gz
rt.equinox.p2-a2344e5ad39e041ee5e822d8bddc4a71bdcd3c03.tar.xz
rt.equinox.p2-a2344e5ad39e041ee5e822d8bddc4a71bdcd3c03.zip
bug 418662: Get rid of compile warnings in official build -I20131209-2000
org.eclipse.equinox.p2.ui.sdk.scheduler Warnings ignored as viewers operate using Object and generics don't add any value here. Change-Id: I07cb090373c5d4765b49195a297fa98fccdff2c8 Signed-off-by: Krzysztof Daniel <kdaniel@redhat.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java
index 6458bb1bc..9a8d6f6f6 100644
--- a/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java
@@ -732,7 +732,9 @@ public class MigrationPage extends WizardPage implements ISelectableIUsPage, Lis
// Both checkedElements and checkedElementsUpdates and the logic inside the getCheckedIUElements method
// are used to prevent unnecessary call to getUpdates method due to computational cost.
+ @SuppressWarnings("rawtypes")
private Set checkedElements;
+ @SuppressWarnings("rawtypes")
private Set checkedElementsUpdates;
private boolean getUpdatesCanceled;
@@ -754,6 +756,7 @@ public class MigrationPage extends WizardPage implements ISelectableIUsPage, Lis
return viewer.getCheckedElements();
}
+ @SuppressWarnings({"rawtypes", "unchecked"})
private Object[] getLatestVersionOfCheckedElements() {
Object[] checkedArray = viewer.getCheckedElements();
@@ -784,6 +787,7 @@ public class MigrationPage extends WizardPage implements ISelectableIUsPage, Lis
}
// Look for update of the current selected installation units and replace the old ons with the updated version
+ @SuppressWarnings("hiding")
private Object[] getUpdates(final Object[] checkedElements) {
final Collection<IInstallableUnit> toInstall = new ArrayList<IInstallableUnit>();

Back to the top