Use the valueOf factory methods pretty much everywhere.

These are the preferred way to get instances of Boolean, Byte,
Short, Character, Integer, Long, Float, and Double object.
It's always made sense for Boolean objects, and with 1.5 these factory
methods were blessed as the proper way to get instances unless one
absolutely needed a distinct object.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4145 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-24 01:24:24 +00:00
parent c143e93554
commit 26c928fc45
100 changed files with 196 additions and 162 deletions
@@ -156,7 +156,7 @@ public class ClientDObjectMgr
*/
public void registerFlushDelay (Class objclass, long delay)
{
_delays.put(objclass, new Long(delay));
_delays.put(objclass, Long.valueOf(delay));
}
/**
@@ -419,7 +419,7 @@ public class ClientDObjectMgr
* The object action is used to queue up a subscribe or unsubscribe
* request.
*/
protected class ObjectAction
protected static final class ObjectAction
{
public int oid;
public Subscriber target;
@@ -438,7 +438,7 @@ public class ClientDObjectMgr
}
}
protected static class PendingRequest
protected static final class PendingRequest
{
public int oid;
public ArrayList targets = new ArrayList();