eclipse/eclipse-policy-comparators.patch
Mat Booth 39a3b2a9b7 Update to M6 pre-release of Luna 4.4.0.
- Drop upstreamed patches: do-not-run-as-root, bug-408505,
  bug-404448, osgi-unpack-sources
- Patch to use mockito-core 1.9
2014-03-31 13:40:18 +01:00

31 lines
1.3 KiB
Diff

--- eclipse.platform.team/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/DiffViewerComparator.java.orig 2014-03-27 10:48:13.547706443 +0000
+++ eclipse.platform.team/bundles/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/DiffViewerComparator.java 2014-03-27 10:52:42.615751600 +0000
@@ -49,7 +49,7 @@
return oldStart0 - oldStart1;
}
- return Policy.getComparator().compare(arg0, arg1);
+ return Policy.getComparator().compare((String)arg0, (String)arg1);
}
};
}
--- eclipse.platform.ui/bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java.orig 2014-03-27 11:27:35.233213660 +0000
+++ eclipse.platform.ui/bundles/org.eclipse.ui.ide.application/src/org/eclipse/ui/internal/ide/application/IDEWorkbenchAdvisor.java 2014-03-27 12:19:30.696748271 +0000
@@ -13,6 +13,7 @@
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
import java.util.ArrayList;
+import java.util.Comparator;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
@@ -235,7 +236,7 @@
// show Help button in JFace dialogs
TrayDialog.setDialogHelpAvailable(true);
- Policy.setComparator(Collator.getInstance());
+ Policy.setComparator((Comparator)Collator.getInstance());
}
/*