We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@NonNull
<T extends Comparable<? super T>>
1 parent 57f9e65 commit f728b15Copy full SHA for f728b15
src/java.base/share/classes/java/util/Comparator.java
@@ -368,7 +368,7 @@ public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() {
368
* @since 1.8
369
*/
370
@SuppressWarnings("unchecked")
371
- public static <T extends Comparable<@NonNull ? super @NonNull T>> Comparator<T> naturalOrder() {
+ public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() {
372
return (Comparator<T>) Comparators.NaturalOrderComparator.INSTANCE;
373
}
374
0 commit comments