diff options
author | michelou <michelou@epfl.ch> | 2007-02-20 16:37:44 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2007-02-20 16:37:44 +0000 |
commit | 4362112a7e58271a50f3218248d8ef47af5cd408 (patch) | |
tree | 5e33db8c783b2f02361fcf4eb28a9b2cf273cf6d /src/actors | |
parent | c71d5e24e64f88ee6f502326674b6b55025fcded (diff) | |
download | scala-4362112a7e58271a50f3218248d8ef47af5cd408.tar.gz scala-4362112a7e58271a50f3218248d8ef47af5cd408.tar.bz2 scala-4362112a7e58271a50f3218248d8ef47af5cd408.zip |
updated annotations in Scala library
Diffstat (limited to 'src/actors')
-rw-r--r-- | src/actors/scala/actors/remote/Serializer.scala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/actors/scala/actors/remote/Serializer.scala b/src/actors/scala/actors/remote/Serializer.scala index e3c9c1236e..2532e63dfe 100644 --- a/src/actors/scala/actors/remote/Serializer.scala +++ b/src/actors/scala/actors/remote/Serializer.scala @@ -1,7 +1,7 @@ /* __ *\ ** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2005-2006, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** +** / __/ __// _ | / / / _ | (c) 2005-2007, LAMP/EPFL ** +** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** ** /____/\___/_/ |_/____/_/ | | ** ** |/ ** \* */ @@ -20,7 +20,7 @@ abstract class Serializer(val service: Service) { def serialize(o: AnyRef): Array[byte] def deserialize(a: Array[byte]): AnyRef - [throws(classOf[IOException])] + @throws(classOf[IOException]) def readBytes(inputStream: DataInputStream): Array[byte] = { try { val length = inputStream.readInt() @@ -34,13 +34,13 @@ abstract class Serializer(val service: Service) { } } - [throws(classOf[IOException]), throws(classOf[ClassNotFoundException])] + @throws(classOf[IOException]) @throws(classOf[ClassNotFoundException]) def readObject(inputStream: DataInputStream): AnyRef = { val bytes = readBytes(inputStream) deserialize(bytes) } - [throws(classOf[IOException])] + @throws(classOf[IOException]) def writeBytes(outputStream: DataOutputStream, bytes: Array[byte]): unit = { val length = bytes.length; // original length @@ -49,7 +49,7 @@ abstract class Serializer(val service: Service) { outputStream.flush() } - [throws(classOf[IOException])] + @throws(classOf[IOException]) def writeObject(outputStream: DataOutputStream, obj: AnyRef) = { val bytes = serialize(obj) writeBytes(outputStream, bytes) |