Minor corrections after review
This commit is contained in:
parent
712805baec
commit
3b5d45feac
2 changed files with 4 additions and 4 deletions
|
|
@ -106,7 +106,7 @@ class SerializeSpec extends AkkaSpec(SerializeSpec.serializationConf) {
|
|||
}))
|
||||
a ! new ObjectOutputStream(new ByteArrayOutputStream())
|
||||
expectMsg("pass")
|
||||
a.stop
|
||||
a.stop()
|
||||
}
|
||||
|
||||
"serialize DeadLetterActorRef" in {
|
||||
|
|
|
|||
|
|
@ -112,6 +112,9 @@ trait ActorContext extends ActorRefFactory {
|
|||
* @return the provided ActorRef
|
||||
*/
|
||||
def unwatch(subject: ActorRef): ActorRef
|
||||
|
||||
final protected def writeObject(o: ObjectOutputStream): Unit =
|
||||
throw new NotSerializableException("ActorContext is not serializable!")
|
||||
}
|
||||
|
||||
trait UntypedActorContext extends ActorContext {
|
||||
|
|
@ -603,7 +606,4 @@ private[akka] final class ActorCell(
|
|||
lookupAndSetField(a.getClass, a, "self", self)
|
||||
}
|
||||
}
|
||||
|
||||
final protected def writeObject(o: ObjectOutputStream): Unit =
|
||||
throw new NotSerializableException("ActorCell/ActorContext is not serializable!")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue