From a2344e5ad39e041ee5e822d8bddc4a71bdcd3c03 Mon Sep 17 00:00:00 2001 From: Krzysztof Daniel Date: Mon, 9 Dec 2013 20:06:07 +0100 Subject: 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 --- .../equinox/internal/p2/ui/sdk/scheduler/migration/MigrationPage.java | 4 ++++ 1 file changed, 4 insertions(+) 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 toInstall = new ArrayList(); -- cgit v1.2.1