Added explicit type of def context in TypedActor
This commit is contained in:
parent
3f8f8632cc
commit
1c6761c811
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ object TypedActor extends ExtensionId[TypedActorExtension] with ExtensionIdProvi
|
|||
/**
|
||||
* Returns the ActorContext (for a TypedActor) when inside a method call in a TypedActor.
|
||||
*/
|
||||
def context = currentContext.get match {
|
||||
def context: ActorContext = currentContext.get match {
|
||||
case null ⇒ throw new IllegalStateException("Calling TypedActor.context outside of a TypedActor implementation method!")
|
||||
case some ⇒ some
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue