diff --git a/core/src/main/java/com/google/common/truth/IterableSubject.java b/core/src/main/java/com/google/common/truth/IterableSubject.java index bdafca937..edbd445a7 100644 --- a/core/src/main/java/com/google/common/truth/IterableSubject.java +++ b/core/src/main/java/com/google/common/truth/IterableSubject.java @@ -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)); } @@ -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)); }