Skip to content

Commit

Permalink
Add @SuppressWarnings to nullness errors detected by a newer version …
Browse files Browse the repository at this point in the history
…of the Checker Framework

PiperOrigin-RevId: 471137219
  • Loading branch information
Googler authored and marcbaechinger committed Oct 19, 2022
1 parent e6a1936 commit 90e684a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ 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;

/**
* @param firstSampleTimestampUs The desired value of the first adjusted sample timestamp in
* 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);
Expand Down

0 comments on commit 90e684a

Please sign in to comment.