From 6f9baffa0cc7daf8cbfd5e1f6c55a908190d2041 Mon Sep 17 00:00:00 2001 From: olly Date: Thu, 7 Nov 2019 09:33:59 +0000 Subject: [PATCH] Suppress warnings emitted by Checker Framework version 2.11.1 More information: https://docs.google.com/document/d/16tpK6aXqN68PvTyvt4siM-m7f0NXi_8xEeitLDzr8xY/edit?usp=sharing Tested: tap_presubmit: http://test/OCL:278683723:BASE:278762656:1573036487314:924e1b0b Some tests failed; test failures are believed to be unrelated to this CL PiperOrigin-RevId: 279034739 --- .../google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java b/library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java index 957c3ba209..b9ecaf174c 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/PsshAtomUtil.java @@ -49,7 +49,8 @@ public final class PsshAtomUtil { * @param data The scheme specific data. * @return The PSSH atom. */ - @SuppressWarnings("ParameterNotNullable") + // dereference of possibly-null reference keyId + @SuppressWarnings({"ParameterNotNullable", "nullness:dereference.of.nullable"}) public static byte[] buildPsshAtom( UUID systemId, @Nullable UUID[] keyIds, @Nullable byte[] data) { int dataLength = data != null ? data.length : 0;