Pass in the expected type to readObject anywhere the code would clearly convert the wrong type to null anyway

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5440 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Jamie Doornbos
2008-10-11 06:28:50 +00:00
parent a3cc67348e
commit 2b298aa3d5
18 changed files with 22 additions and 22 deletions
@@ -34,7 +34,7 @@ public class AuthResponse extends DownstreamMessage
override public function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
_data = (ins.readObject() as AuthResponseData);
_data = (ins.readObject(AuthResponseData) as AuthResponseData);
}
protected var _data :AuthResponseData;
@@ -55,7 +55,7 @@ public class BootstrapData
{
connectionId = ins.readInt();
clientOid = ins.readInt();
services = (ins.readObject() as Array);
services = (ins.readObject(Array) as Array);
}
}
}
@@ -33,7 +33,7 @@ public class BootstrapNotification extends DownstreamMessage
override public function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
_data = (ins.readObject() as BootstrapData);
_data = (ins.readObject(BootstrapData) as BootstrapData);
}
/** The data associated with this notification. */
@@ -57,7 +57,7 @@ public /* abstract */ class Credentials
public function readObject (ins :ObjectInputStream) :void
//throws IOError
{
_username = (ins.readObject() as Name);
_username = (ins.readObject(Name) as Name);
}
public function toString () :String
@@ -40,7 +40,7 @@ public class EventNotification extends DownstreamMessage
override public function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
_event = (ins.readObject() as DEvent);
_event = (ins.readObject(DEvent) as DEvent);
}
/** The event which we are forwarding. */
@@ -40,7 +40,7 @@ public class ObjectResponse extends DownstreamMessage
override public function readObject (ins :ObjectInputStream) :void
{
super.readObject(ins);
_dobj = (ins.readObject() as DObject);
_dobj = (ins.readObject(DObject) as DObject);
}
/** The object which is associated with this response. */