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

@ -249,7 +249,7 @@ trait Actor {
* User overridable definition the strategy to use for supervising
* child actors.
*/
def supervisorStrategy(): SupervisorStrategy = SupervisorStrategy.defaultStrategy
def supervisorStrategy: SupervisorStrategy = SupervisorStrategy.defaultStrategy
/**
* User overridable callback.

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]])
/**

View file

@ -116,7 +116,7 @@ abstract class UntypedActor extends Actor {
* User overridable definition the strategy to use for supervising
* child actors.
*/
override def supervisorStrategy(): SupervisorStrategy = super.supervisorStrategy()
override def supervisorStrategy: SupervisorStrategy = super.supervisorStrategy
/**
* User overridable callback.