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
|
|
@ -324,7 +324,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.
|
||||
|
|
|
|||
|
|
@ -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]])
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -122,7 +122,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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue