bug 418662: Get rid of compile warnings in official build -
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>
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 6458bb1..9a8d6f6 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 @@
// 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 @@
return viewer.getCheckedElements();
}
+ @SuppressWarnings({"rawtypes", "unchecked"})
private Object[] getLatestVersionOfCheckedElements() {
Object[] checkedArray = viewer.getCheckedElements();
@@ -784,6 +787,7 @@
}
// 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>();