Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90e684a6
authored
Aug 31, 2022
by
Googler
Committed by
Marc Baechinger
Oct 19, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add @SuppressWarnings to nullness errors detected by a newer version of the Checker Framework
PiperOrigin-RevId: 471137219
parent
e6a1936b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java
library/common/src/main/java/com/google/android/exoplayer2/util/TimestampAdjuster.java
View file @
90e684a6
...
@@ -65,6 +65,8 @@ public final class TimestampAdjuster {
...
@@ -65,6 +65,8 @@ public final class TimestampAdjuster {
* Next sample timestamps for calling threads in shared mode when {@link #timestampOffsetUs} has
* Next sample timestamps for calling threads in shared mode when {@link #timestampOffsetUs} has
* not yet been set.
* not yet been set.
*/
*/
// incompatible type argument for type parameter T of ThreadLocal.
@SuppressWarnings
(
"nullness:type.argument.type.incompatible"
)
private
final
ThreadLocal
<
Long
>
nextSampleTimestampUs
;
private
final
ThreadLocal
<
Long
>
nextSampleTimestampUs
;
/**
/**
...
@@ -72,6 +74,8 @@ public final class TimestampAdjuster {
...
@@ -72,6 +74,8 @@ public final class TimestampAdjuster {
* microseconds, or {@link #MODE_NO_OFFSET} if timestamps should not be offset, or {@link
* 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.
* #MODE_SHARED} if the adjuster will be used in shared mode.
*/
*/
// incompatible types in assignment.
@SuppressWarnings
(
"nullness:assignment.type.incompatible"
)
public
TimestampAdjuster
(
long
firstSampleTimestampUs
)
{
public
TimestampAdjuster
(
long
firstSampleTimestampUs
)
{
nextSampleTimestampUs
=
new
ThreadLocal
<>();
nextSampleTimestampUs
=
new
ThreadLocal
<>();
reset
(
firstSampleTimestampUs
);
reset
(
firstSampleTimestampUs
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment