import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Function;
-import javax.annotation.Nonnull;
/**
* An implementation of CheckedFuture that provides similar behavior for the <code>get</code> methods
@Override
@SuppressWarnings("checkstyle:parameterName")
- protected X mapException(@Nonnull final Exception e) {
+ protected X mapException(final Exception e) {
return mapper.apply(e);
}
}
@Override
- public V get(final long timeout, @Nonnull final TimeUnit unit)
+ public V get(final long timeout, final TimeUnit unit)
throws InterruptedException, ExecutionException, TimeoutException {
try {
return super.get(timeout, unit);