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
@@ -47,11 +47,6 @@ public class Name extends SimpleStreamableObject
return (name == null || name.toString().equals(BLANK.toString()));
}
/** Creates a blank instance for unserialization. */
public Name ()
{
}
/**
* Creates a name instance with the supplied name.
*/
@@ -142,13 +142,6 @@ public class StreamableEnumSet<E extends Enum<E>> extends AbstractSet<E>
initContents();
}
/**
* No-arg constructor for deserialization.
*/
public StreamableEnumSet ()
{
}
@Override
public Iterator<E> iterator ()
{
@@ -51,12 +51,4 @@ public class StreamableTuple<L, R> extends Tuple<L, R>
{
super(left, right);
}
/**
* Don't use this constructor! It's only for unstreaming.
*/
public StreamableTuple ()
{
super(null, null);
}
}