Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2011-04-13 17:39:17 +0000
committerDJ Houghton2011-04-13 17:39:17 +0000
commit74a4fc52f1bcb8332461bc7358a89847ed82ab7e (patch)
tree5ca0205808bc2aa56fb1704fe504d1c663033e00 /bundles
parentc8c6bdf01195e7e130d407f51db5b1999be516bc (diff)
downloadrt.equinox.p2-74a4fc52f1bcb8332461bc7358a89847ed82ab7e.tar.gz
rt.equinox.p2-74a4fc52f1bcb8332461bc7358a89847ed82ab7e.tar.xz
rt.equinox.p2-74a4fc52f1bcb8332461bc7358a89847ed82ab7e.zip
Bug 342661 - compile warnings in official builds
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
index eecda9a14..378e5a4b0 100644
--- a/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
+++ b/bundles/org.eclipse.equinox.p2.ui.importexport/src/org/eclipse/equinox/internal/p2/importexport/internal/wizard/AbstractPage.java
@@ -7,6 +7,7 @@
*
* Contributors:
* WindRiver Corporation - initial API and implementation
+ * IBM Corporation - Ongoing development
*******************************************************************************/
package org.eclipse.equinox.internal.p2.importexport.internal.wizard;
@@ -66,13 +67,15 @@ public abstract class AbstractPage extends WizardPage implements Listener {
ITableLabelProvider tableProvider = (ITableLabelProvider) baseLabel;
String e1p = tableProvider.getColumnText(e1, getSortColumn());
String e2p = tableProvider.getColumnText(e2, getSortColumn());
+ @SuppressWarnings("unchecked")
int result = getComparator().compare(e1p, e2p);
// Secondary column sort
if (result == 0) {
e1p = tableProvider.getColumnText(e1, lastSortColumn);
e2p = tableProvider.getColumnText(e2, lastSortColumn);
- result = getComparator().compare(e1p, e2p);
- return lastAscending ? result : (-1) * result;
+ @SuppressWarnings("unchecked")
+ int result2 = getComparator().compare(e1p, e2p);
+ return lastAscending ? result2 : (-1) * result2;
}
return isAscending() ? result : (-1) * result;
}

Back to the top