Take advantage of our new "one constructor to rule them all" capabilities in

various base classes. This allows us to use final fields in some cases, which
I've done (though our naughty penchant for mutation forced me to roll back a
bunch of other spots where I would have liked to make fields final).

This is going to break a few things in dependents, because said dependents will
have zero argument constructors of their own which will need to be removed.
I'll be tracking those down and cleaning them up as build failures provide me
with infos.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6575 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2011-04-01 22:06:42 +00:00
parent 61de392df9
commit b986464ee7
39 changed files with 127 additions and 511 deletions
@@ -21,6 +21,8 @@
package com.threerings.presents.dobj;
import com.threerings.presents.net.Transport;
/**
* A message event that only goes to the server. If generated on the server then it never leaves
* the server.
@@ -28,25 +30,17 @@ package com.threerings.presents.dobj;
public class ServerMessageEvent extends MessageEvent
{
/**
* Constructs a new message event on the specified target object with
* the supplied name and arguments.
* Constructs a new message event on the specified target object with the supplied name and
* arguments.
*
* @param targetOid the object id of the object whose attribute has
* changed.
* @param targetOid the object id of the object whose attribute has changed.
* @param name the name of the message event.
* @param args the arguments for this message. This array should
* contain only values of valid distributed object types.
* @param args the arguments for this message. This array should contain only values of valid
* distributed object types.
*/
public ServerMessageEvent (int targetOid, String name, Object[] args)
{
super(targetOid, name, args);
}
/**
* Suitable for unserialization.
*/
public ServerMessageEvent ()
{
super(targetOid, name, args, Transport.DEFAULT);
}
@Override