From 90e684a6dcd5d92470780060feb2099c2f905bbd Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 31 Aug 2022 01:09:09 +0000 Subject: [PATCH] Add @SuppressWarnings to nullness errors detected by a newer version of the Checker Framework PiperOrigin-RevId: 471137219 --- .../com/google/android/exoplayer2/util/TimestampAdjuster.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java b/library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java index 1f5da87a59..8d7b709abd 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java @@ -65,6 +65,8 @@ public final class TimestampAdjuster { * Next sample timestamps for calling threads in shared mode when {@link #timestampOffsetUs} has * not yet been set. */ + // incompatible type argument for type parameter T of ThreadLocal. + @SuppressWarnings("nullness:type.argument.type.incompatible") private final ThreadLocal nextSampleTimestampUs; /** @@ -72,6 +74,8 @@ public final class TimestampAdjuster { * microseconds, or {@link #MODE_NO_OFFSET} if timestamps should not be offset, or {@link * #MODE_SHARED} if the adjuster will be used in shared mode. */ + // incompatible types in assignment. + @SuppressWarnings("nullness:assignment.type.incompatible") public TimestampAdjuster(long firstSampleTimestampUs) { nextSampleTimestampUs = new ThreadLocal<>(); reset(firstSampleTimestampUs);