This is so succinct now, we can dispense with the helper method altogether.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6115 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -109,7 +109,8 @@ public class Streamer
|
|||||||
{
|
{
|
||||||
// if we have not yet initialized ourselves, do so now
|
// if we have not yet initialized ourselves, do so now
|
||||||
if (_streamers == null) {
|
if (_streamers == null) {
|
||||||
createStreamers();
|
_streamers = Maps.newHashMap();
|
||||||
|
_streamers.putAll(BasicStreamers.BSTREAMERS); // register all of the basic streamers
|
||||||
}
|
}
|
||||||
|
|
||||||
Streamer stream = _streamers.get(target);
|
Streamer stream = _streamers.get(target);
|
||||||
@@ -487,15 +488,6 @@ public class Streamer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates our streamers table and registers streamers for all of the basic types.
|
|
||||||
*/
|
|
||||||
protected static void createStreamers ()
|
|
||||||
{
|
|
||||||
_streamers = Maps.newHashMap();
|
|
||||||
_streamers.putAll(BasicStreamers.BSTREAMERS); // register all of the basic streamers
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used to coerce the type system into quietude when reading enums from the wire. */
|
/** Used to coerce the type system into quietude when reading enums from the wire. */
|
||||||
protected static enum EnumReader implements ByteEnum {
|
protected static enum EnumReader implements ByteEnum {
|
||||||
NOT_USED;
|
NOT_USED;
|
||||||
|
|||||||
Reference in New Issue
Block a user