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
@@ -175,7 +175,7 @@ public class BodyObject extends ClientObject
{
int ovalue = this.location;
requestAttributeChange(
LOCATION, new Integer(value), new Integer(ovalue));
LOCATION, Integer.valueOf(value), Integer.valueOf(ovalue));
this.location = value;
}
@@ -191,7 +191,7 @@ public class BodyObject extends ClientObject
{
byte ovalue = this.status;
requestAttributeChange(
STATUS, new Byte(value), new Byte(ovalue));
STATUS, Byte.valueOf(value), Byte.valueOf(ovalue));
this.status = value;
}