Skip to content

Commit 9916d82

Browse files
stefanhausteinGoogle Java Core Libraries
authored and
Google Java Core Libraries
committed
Fix j2kt stream package nullability
Fix sort() parameter nullability RELNOTES=n/a PiperOrigin-RevId: 538560615
1 parent e82e2a2 commit 9916d82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guava/src/com/google/common/collect/ImmutableList.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ public final void replaceAll(UnaryOperator<E> operator) {
577577
@Deprecated
578578
@Override
579579
@DoNotCall("Always throws UnsupportedOperationException")
580-
public final void sort(Comparator<? super E> c) {
580+
public final void sort(@Nullable Comparator<? super E> c) {
581581
throw new UnsupportedOperationException();
582582
}
583583

guava/src/com/google/common/collect/Synchronized.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public void replaceAll(UnaryOperator<E> operator) {
447447
}
448448

449449
@Override
450-
public void sort(Comparator<? super E> c) {
450+
public void sort(@Nullable Comparator<? super E> c) {
451451
synchronized (mutex) {
452452
delegate().sort(c);
453453
}

0 commit comments

Comments
 (0)