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:
Ray Greenwell
2008-12-31 00:41:20 +00:00
parent e9152193b7
commit 7728ed9bd3
4 changed files with 14 additions and 57 deletions
@@ -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);