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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user