Skip to content

Commit

Permalink
Add missed nullability for IterableSubject array elements
Browse files Browse the repository at this point in the history
RELNOTES=n/a
PiperOrigin-RevId: 546013371
  • Loading branch information
stefanhaustein authored and Google Java Core Libraries committed Jul 6, 2023
1 parent 3f00bfe commit 1857121
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public final void containsAnyIn(@Nullable Iterable<?> expected) {
* fails.
*/
@SuppressWarnings("AvoidObjectArrays")
public final void containsAnyIn(Object[] expected) {
public final void containsAnyIn(@Nullable Object[] expected) {
containsAnyIn(asList(expected));
}

Expand Down Expand Up @@ -333,7 +333,7 @@ public void inOrder() {
*/
@CanIgnoreReturnValue
@SuppressWarnings("AvoidObjectArrays")
public final Ordered containsAtLeastElementsIn(Object[] expected) {
public final Ordered containsAtLeastElementsIn(@Nullable Object[] expected) {
return containsAtLeastElementsIn(asList(expected));
}

Expand Down

0 comments on commit 1857121

Please sign in to comment.