changeset 6349:f6366de3394c

Fix bug in signature of Comparators.reverseOrder()
author briangoetz
date Wed, 24 Oct 2012 15:44:14 -0400
parents e40752a8afe3
children 52fe21edb93b
files src/share/classes/java/util/Comparators.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Comparators.java	Wed Oct 24 15:40:53 2012 -0400
+++ b/src/share/classes/java/util/Comparators.java	Wed Oct 24 15:44:14 2012 -0400
@@ -175,7 +175,7 @@
     }
 
     // Included for convenience, duplicates Collections functionality
-    public static <T> Comparator<T> reverseOrder() {
+    public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() {
         return Collections.reverseOrder();
     }