We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e82e2a2 commit 9916d82Copy full SHA for 9916d82
guava/src/com/google/common/collect/ImmutableList.java
@@ -577,7 +577,7 @@ public final void replaceAll(UnaryOperator<E> operator) {
577
@Deprecated
578
@Override
579
@DoNotCall("Always throws UnsupportedOperationException")
580
- public final void sort(Comparator<? super E> c) {
+ public final void sort(@Nullable Comparator<? super E> c) {
581
throw new UnsupportedOperationException();
582
}
583
guava/src/com/google/common/collect/Synchronized.java
@@ -447,7 +447,7 @@ public void replaceAll(UnaryOperator<E> operator) {
447
448
449
450
- public void sort(Comparator<? super E> c) {
+ public void sort(@Nullable Comparator<? super E> c) {
451
synchronized (mutex) {
452
delegate().sort(c);
453
0 commit comments