Skip to content

Commit

Permalink
Fix j2kt stream package nullability
Browse files Browse the repository at this point in the history
Fix sort() parameter nullability

RELNOTES=n/a
PiperOrigin-RevId: 538560615
  • Loading branch information
stefanhaustein authored and Google Java Core Libraries committed Jun 7, 2023
1 parent e82e2a2 commit 9916d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guava/src/com/google/common/collect/ImmutableList.java
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public final void replaceAll(UnaryOperator<E> operator) {
@Deprecated
@Override
@DoNotCall("Always throws UnsupportedOperationException")
public final void sort(Comparator<? super E> c) {
public final void sort(@Nullable Comparator<? super E> c) {
throw new UnsupportedOperationException();
}

Expand Down
2 changes: 1 addition & 1 deletion guava/src/com/google/common/collect/Synchronized.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ public void replaceAll(UnaryOperator<E> operator) {
}

@Override
public void sort(Comparator<? super E> c) {
public void sort(@Nullable Comparator<? super E> c) {
synchronized (mutex) {
delegate().sort(c);
}
Expand Down

0 comments on commit 9916d82

Please sign in to comment.