From 88fe8296335760e68504d52a9e95e8eb817ec622 Mon Sep 17 00:00:00 2001 From: ibaker Date: Wed, 22 Dec 2021 15:34:46 +0000 Subject: [PATCH] Mark FakeMediaSourceFactory final There's no need to extend this class. Factories for subclasses of FakeMediaSource will need to re-implement createMediaSource, at which point they basically need to re-implement the whole factory interface. PiperOrigin-RevId: 417817499 --- .../android/exoplayer2/testutil/FakeMediaSourceFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSourceFactory.java b/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSourceFactory.java index b740de623e..53a0f7eeba 100644 --- a/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSourceFactory.java +++ b/testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeMediaSourceFactory.java @@ -27,7 +27,7 @@ import com.google.android.exoplayer2.upstream.LoadErrorHandlingPolicy; import com.google.android.exoplayer2.util.Util; /** Fake {@link MediaSourceFactory} that creates a {@link FakeMediaSource}. */ -public class FakeMediaSourceFactory implements MediaSourceFactory { +public final class FakeMediaSourceFactory implements MediaSourceFactory { /** The window UID used by media sources that are created by the factory. */ public static final Object DEFAULT_WINDOW_UID = new Object();