Skip to content

Commit d73e659

Browse files
committed
Point Futures.asJava deprecation to CompletionStages.fromScala
Motivation: Users should be directed to the new CompletionStages.fromScala method rather than the low-level scala.jdk.FutureConverters. Modification: Update deprecation message on Futures.asJava. Result: Consistent migration path through CompletionStages API. Tests: - Not run - message-only change References: Fixes #1417
1 parent 1c39df2 commit d73e659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎actor/src/main/scala/org/apache/pekko/dispatch/Future.scala‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ object Futures {
9090
*
9191
* @since 1.2.0
9292
*/
93-
@deprecated("Use scala.jdk.FutureConverters instead.", since = "2.0.0")
93+
@deprecated("Use CompletionStages.fromScala instead.", since = "2.0.0")
9494
def asJava[T](future: Future[T]): CompletionStage[T] = {
9595
import scala.jdk.FutureConverters._
9696
future.asJava

0 commit comments

Comments
 (0)