ben-manes / caffeine

Nullable parameters should be checked for null before use JAVA-E1067
Bug risk
Critical
1 occurrence in this check
future is accessed as if it is non-null, but is marked as @Nullable!
 48  /** Returns the current value or null if either not done or failed. */
 49  @SuppressWarnings("NullAway")
 50  static @Nullable <V> V getIfReady(@Nullable CompletableFuture<V> future) {
 51    return isReady(future) ? future.join() : null; 52  }
 53
 54  /** Returns the value when completed successfully or null if failed. */