diff --git a/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java b/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java index 5b17299a53..ee98d84181 100644 --- a/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java +++ b/library/core/src/test/java/com/google/android/exoplayer2/ExoPlayerTest.java @@ -6184,6 +6184,7 @@ public final class ExoPlayerTest { new Loader.Loadable() { @Override public void load() throws IOException { + @SuppressWarnings("unused") // This test needs the allocation to cause an OOM. byte[] largeBuffer = new byte[Integer.MAX_VALUE]; }