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:
@@ -194,7 +194,7 @@ public class LocationProvider
|
||||
try {
|
||||
PlaceObject pold = (PlaceObject)_omgr.getObject(oldloc);
|
||||
if (pold != null) {
|
||||
Integer key = new Integer(bodoid);
|
||||
Integer key = Integer.valueOf(bodoid);
|
||||
pold.startTransaction();
|
||||
try {
|
||||
// remove their occupant info (which is keyed on oid)
|
||||
|
||||
Reference in New Issue
Block a user