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:
@@ -78,7 +78,7 @@ public class UserMessage extends ChatMessage
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
speaker = (ins.readObject() as Name);
|
||||
speaker = (ins.readObject(Name) as Name);
|
||||
mode = ins.readByte();
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ public class UserSystemMessage extends SystemMessage
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
speaker = (ins.readObject() as Name);
|
||||
speaker = (ins.readObject(Name) as Name);
|
||||
}
|
||||
|
||||
// from interface Streamable
|
||||
|
||||
@@ -180,7 +180,7 @@ public class BodyObject extends ClientObject
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
location = (ins.readObject() as Place);
|
||||
location = (ins.readObject(Place) as Place);
|
||||
status = ins.readByte();
|
||||
awayMessage = (ins.readField(String) as String);
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ public class OccupantInfo extends SimpleStreamableObject
|
||||
{
|
||||
super.readObject(ins);
|
||||
bodyOid = (ins.readField(Integer) as Integer).value;
|
||||
username = (ins.readObject() as Name);
|
||||
username = (ins.readObject(Name) as Name);
|
||||
status = ins.readByte();
|
||||
}
|
||||
|
||||
|
||||
@@ -206,9 +206,9 @@ public class PlaceObject extends DObject
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
occupants = (ins.readObject() as OidList);
|
||||
occupantInfo = (ins.readObject() as DSet);
|
||||
speakService = (ins.readObject() as SpeakMarshaller);
|
||||
occupants = (ins.readObject(OidList) as OidList);
|
||||
occupantInfo = (ins.readObject(DSet) as DSet);
|
||||
speakService = (ins.readObject(SpeakMarshaller) as SpeakMarshaller);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class CrowdClientInfo extends ClientInfo
|
||||
override public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
visibleName = (ins.readObject() as Name);
|
||||
visibleName = (ins.readObject(Name) as Name);
|
||||
}
|
||||
|
||||
// from interface Streamable
|
||||
|
||||
Reference in New Issue
Block a user