Suppress 'unused' warning on largeBuffer local in ExoPlayerTest

PiperOrigin-RevId: 302474924
This commit is contained in:
ibaker 2020-03-23 18:14:44 +00:00 committed by Oliver Woodman
parent 0c20462b48
commit 2cbf98bb68

View File

@ -6184,6 +6184,7 @@ public final class ExoPlayerTest {
new Loader.Loadable() { new Loader.Loadable() {
@Override @Override
public void load() throws IOException { public void load() throws IOException {
@SuppressWarnings("unused") // This test needs the allocation to cause an OOM.
byte[] largeBuffer = new byte[Integer.MAX_VALUE]; byte[] largeBuffer = new byte[Integer.MAX_VALUE];
} }