Skip to content

Commit f728b15

Browse files
authored
Remove unnecessary @NonNull usages from <T extends Comparable<? super T>>. (typetools#75)
1 parent 57f9e65 commit f728b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/java/util/Comparator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public static <T extends Comparable<? super T>> Comparator<T> reverseOrder() {
368368
* @since 1.8
369369
*/
370370
@SuppressWarnings("unchecked")
371-
public static <T extends Comparable<@NonNull ? super @NonNull T>> Comparator<T> naturalOrder() {
371+
public static <T extends Comparable<? super T>> Comparator<T> naturalOrder() {
372372
return (Comparator<T>) Comparators.NaturalOrderComparator.INSTANCE;
373373
}
374374

0 commit comments

Comments
 (0)