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:
@@ -125,7 +125,7 @@ public class InvocationManager
|
||||
bootlist.add(marsh);
|
||||
}
|
||||
|
||||
_recentRegServices.put(new Integer(invCode),
|
||||
_recentRegServices.put(Integer.valueOf(invCode),
|
||||
marsh.getClass().getName());
|
||||
|
||||
// Log.info("Registered service [marsh=" + marsh + "].");
|
||||
@@ -229,7 +229,7 @@ public class InvocationManager
|
||||
"registration was already cleared [code=" + invCode +
|
||||
", methId=" + methodId +
|
||||
", args=" + StringUtil.toString(args) + ", marsh=" +
|
||||
_recentRegServices.get(new Integer(invCode)) + "].");
|
||||
_recentRegServices.get(Integer.valueOf(invCode)) + "].");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user