mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Add @SuppressWarnings to nullness errors detected by a newer version of the Checker Framework
PiperOrigin-RevId: 471137219
This commit is contained in:
parent
e6a1936ba9
commit
90e684a6dc
1 changed files with 4 additions and 0 deletions
|
|
@ -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<Long> 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue