closes #2076: Streamline usage of parens on arity-0 methods with the Style Guide (once more)

This commit is contained in:
Heiko Seeberger 2012-05-15 12:13:23 +02:00
parent 2e248e4b49
commit 3e44cda33b
3 changed files with 3 additions and 8 deletions

View file

@ -31,18 +31,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]])
/**