From 34d57cd9bc1c666716fa1f0f9f61721734ae7c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bu=CC=80i=20Vie=CC=A3=CC=82t=20Tha=CC=80nh?= Date: Sat, 28 Mar 2020 03:31:13 +0700 Subject: [PATCH] dotty compat: remove `()` from apply method of Props & TypedProps --- akka-actor/src/main/scala/akka/actor/Props.scala | 2 +- akka-actor/src/main/scala/akka/actor/TypedActor.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-actor/src/main/scala/akka/actor/Props.scala b/akka-actor/src/main/scala/akka/actor/Props.scala index a170bbcd33d..fae10454c13 100644 --- a/akka-actor/src/main/scala/akka/actor/Props.scala +++ b/akka-actor/src/main/scala/akka/actor/Props.scala @@ -59,7 +59,7 @@ object Props extends AbstractProps { * Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance * of the supplied type using the default constructor. */ - def apply[T <: Actor: ClassTag](): Props = apply(defaultDeploy, implicitly[ClassTag[T]].runtimeClass, List.empty) + def apply[T <: Actor: ClassTag]: Props = apply(defaultDeploy, implicitly[ClassTag[T]].runtimeClass, List.empty) /** * Scala API: Returns a Props that has default values except for "creator" which will be a function that creates an instance diff --git a/akka-actor/src/main/scala/akka/actor/TypedActor.scala b/akka-actor/src/main/scala/akka/actor/TypedActor.scala index 378fd9d0cdd..be8d9eaf2d5 100644 --- a/akka-actor/src/main/scala/akka/actor/TypedActor.scala +++ b/akka-actor/src/main/scala/akka/actor/TypedActor.scala @@ -560,7 +560,7 @@ object TypedProps { * * Scala API */ - def apply[T <: AnyRef: ClassTag](): TypedProps[T] = + def apply[T <: AnyRef: ClassTag]: TypedProps[T] = new TypedProps[T](implicitly[ClassTag[T]].runtimeClass.asInstanceOf[Class[T]]) /**