diff options
Diffstat (limited to 'android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java')
-rw-r--r-- | android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java b/android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java index ed5e6a96d..d90c5bbe8 100644 --- a/android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java +++ b/android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java @@ -25,7 +25,7 @@ import java.util.concurrent.Executor; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.concurrent.locks.AbstractQueuedSynchronizer; -import javax.annotation.CheckForNull; +import org.checkerframework.checker.nullness.qual.Nullable; /** Utilities for the AbstractFutureBenchmarks */ final class AbstractFutureBenchmarks { @@ -218,7 +218,7 @@ final class AbstractFutureBenchmarks { * @return true if the state was successfully changed. */ @CanIgnoreReturnValue - protected boolean set(@CheckForNull V value) { + protected boolean set(@Nullable V value) { boolean result = sync.set(value); if (result) { executionList.execute(); @@ -360,7 +360,7 @@ final class AbstractFutureBenchmarks { } /** Transition to the COMPLETED state and set the value. */ - boolean set(@CheckForNull V v) { + boolean set(@Nullable V v) { return complete(v, null, COMPLETED); } @@ -384,7 +384,7 @@ final class AbstractFutureBenchmarks { * @param t the exception to set as the result of the computation. * @param finalState the state to transition to. */ - private boolean complete(@CheckForNull V v, @CheckForNull Throwable t, int finalState) { + private boolean complete(@Nullable V v, @Nullable Throwable t, int finalState) { boolean doCompletion = compareAndSetState(RUNNING, COMPLETING); if (doCompletion) { // If this thread successfully transitioned to COMPLETING, set the value @@ -406,7 +406,7 @@ final class AbstractFutureBenchmarks { } static final CancellationException cancellationExceptionWithCause( - @CheckForNull String message, @CheckForNull Throwable cause) { + @Nullable String message, @Nullable Throwable cause) { CancellationException exception = new CancellationException(message); exception.initCause(cause); return exception; |