Further cleanup: always look up streamers by their java name.
- Sliiiiightly less efficient in a few cases. - But: looking typed arrays up by class didn't work anyway, there was some duplicated code in jname and class lookup, and the jname thing handles Lists from the server. So overall I think this is a win. Less code is better code. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5610 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -66,13 +66,6 @@ public class ArrayStreamer extends Streamer
|
||||
}
|
||||
}
|
||||
|
||||
override public function getClass () :Class
|
||||
{
|
||||
// this is a little weird, but basically, we don't want to be registered for Array
|
||||
// unless we're the basic Object array streamer.
|
||||
return (_jname == "[Ljava.lang.Object;") ? Array : null;
|
||||
}
|
||||
|
||||
override public function createObject (ins :ObjectInputStream) :Object
|
||||
{
|
||||
var ta :TypedArray = new TypedArray(_jname);
|
||||
|
||||
Reference in New Issue
Block a user