Merge pull request #453 from akka/issue-2076
closes #2076: Streamline usage of parens on arity-0 methods with the Style Guide (once more)
This commit is contained in:
commit
8f09182148
3 changed files with 3 additions and 8 deletions
|
|
@ -43,18 +43,13 @@ object Props {
|
|||
*/
|
||||
final val default = new Props()
|
||||
|
||||
/**
|
||||
* Returns a cached default implementation of Props.
|
||||
*/
|
||||
def apply(): Props = default
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
* Scala API.
|
||||
*/
|
||||
def apply[T <: Actor: ClassManifest]: Props =
|
||||
def apply[T <: Actor: ClassManifest](): Props =
|
||||
default.withCreator(implicitly[ClassManifest[T]].erasure.asInstanceOf[Class[_ <: Actor]])
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue