Lots and lots of work to get things to compile without warnings
This commit is contained in:
parent
6b468d8856
commit
4ee2033761
12 changed files with 51 additions and 46 deletions
|
|
@ -6,7 +6,7 @@ package akka.actor
|
|||
|
||||
import akka.dispatch._
|
||||
import akka.japi.Creator
|
||||
import collection.immutable.Stack
|
||||
import scala.reflect.ClassTag
|
||||
import akka.routing._
|
||||
|
||||
/**
|
||||
|
|
@ -49,8 +49,8 @@ object Props {
|
|||
*
|
||||
* Scala API.
|
||||
*/
|
||||
def apply[T <: Actor: ClassManifest](): Props =
|
||||
default.withCreator(implicitly[ClassManifest[T]].erasure.asInstanceOf[Class[_ <: Actor]])
|
||||
def apply[T <: Actor: ClassTag](): Props =
|
||||
default.withCreator(implicitly[ClassTag[T]].runtimeClass.asInstanceOf[Class[_ <: Actor]])
|
||||
|
||||
/**
|
||||
* Returns a Props that has default values except for "creator" which will be a function that creates an instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue