-
Deprecated MethodsMethodDescriptionno need to use this
-
Deprecated ConstructorsConstructorDescriptionPrefer
ExecutionError(Error)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause.PreferExecutionError(String, Error)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause.PreferUncheckedExecutionException(Throwable)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause.PreferUncheckedExecutionException(String, Throwable)a constructor that accepts a cause: Users of this class typically expect for instances to have a non-null cause. At the moment, you can usually still preserve behavior by passing an explicitnullcause. Note, however, that passing an explicitnullcause prevents anyone from calling#initCauselater, so it is not quite equivalent to using a constructor that omits the cause.
Futures of closeable types is dangerous in general because the underlying value may never be closed if theFutureis canceled after its operation begins. Consider replacing code that createsListenableFutures of closeable types, including those that pass them to this method, with#submit(ClosingCallable, Executor)in order to ensure that resources do not leak. Or, to start a pipeline with aListenableFuturethat doesn't create values that should be closed, useClosingFuture#from.