From 67408ca7fb184edde2e1670ce178e8aec6eace69 Mon Sep 17 00:00:00 2001 From: ibaker Date: Mon, 27 Jul 2020 16:41:36 +0100 Subject: [PATCH] Fix var-args warning in DownloadManagerTest From Truth docs: "To test that the iterable contains the same elements as an array, prefer containsExactlyElementsIn(Object[]). It makes clear that the given array is a list of elements, not an element itself. This helps human readers and avoids a compiler warning." https://truth.dev/api/1.0.1/com/google/common/truth/IterableSubject.html#containsExactly-java.lang.Object...- PiperOrigin-RevId: 323367341 --- .../google/android/exoplayer2/offline/DownloadManagerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/test/java/com/google/android/exoplayer2/offline/DownloadManagerTest.java b/library/core/src/test/java/com/google/android/exoplayer2/offline/DownloadManagerTest.java index de1c35ed49..329b80dfea 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/offline/DownloadManagerTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/offline/DownloadManagerTest.java @@ -909,7 +909,7 @@ public class DownloadManagerTest { } public void assertStreamKeys(StreamKey... streamKeys) { - assertThat(request.streamKeys).containsExactly(streamKeys); + assertThat(request.streamKeys).containsExactlyElementsIn(streamKeys); } public void assertDownloadStarted() throws InterruptedException {