fixed warnings, @serializable -> extends scala.Serializable
This commit is contained in:
parent
79f6133f06
commit
ab05bf9430
6 changed files with 10 additions and 10 deletions
|
|
@ -44,7 +44,7 @@ trait Format[T <: Actor] extends FromBinary[T] with ToBinary[T]
|
|||
* }
|
||||
* </pre>
|
||||
*/
|
||||
@serializable trait StatelessActorFormat[T <: Actor] extends Format[T] {
|
||||
trait StatelessActorFormat[T <: Actor] extends Format[T] with Serializable {
|
||||
def fromBinary(bytes: Array[Byte], act: T) = act
|
||||
|
||||
def toBinary(ac: T) = Array.empty[Byte]
|
||||
|
|
@ -64,7 +64,7 @@ trait Format[T <: Actor] extends FromBinary[T] with ToBinary[T]
|
|||
* }
|
||||
* </pre>
|
||||
*/
|
||||
@serializable trait SerializerBasedActorFormat[T <: Actor] extends Format[T] {
|
||||
trait SerializerBasedActorFormat[T <: Actor] extends Format[T] with Serializable {
|
||||
val serializer: Serializer
|
||||
|
||||
def fromBinary(bytes: Array[Byte], act: T) = serializer.fromBinary(bytes, Some(act.self.actorClass)).asInstanceOf[T]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue