changeset 5845:4e1a14847f62 it2-bootstrap

more generics tweaks.
author mduigou
date Thu, 09 Aug 2012 10:25:55 -0700
parents 519630190ba5
children a018842c6b2d
files src/share/classes/java/util/Comparators.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Comparators.java	Mon Aug 06 13:50:42 2012 -0700
+++ b/src/share/classes/java/util/Comparators.java	Thu Aug 09 10:25:55 2012 -0700
@@ -175,12 +175,12 @@
     }
 
     // Included for convenience, duplicates Collections functionality
-    public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() {
+    public static <T> Comparator<T> reverseOrder() {
         return (Comparator<T>) (Comparator) Collections.reverseOrder();
     }
 
     // Included for convenience, duplicates Collections functionality
-    public static <T extends Comparable<? super T>> Comparator<T> reverseOrder(Comparator<? super T> cmp) {
+    public static <T> Comparator<T> reverseOrder(Comparator<? super T> cmp) {
         return (Comparator<T>) Collections.reverseOrder(cmp);
     }