Copy Java's valueOf factory method for primitive wrapper classes.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4217 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -181,7 +181,7 @@ public class BodyObject extends ClientObject
|
||||
{
|
||||
var ovalue :int = this.status;
|
||||
requestAttributeChange(
|
||||
STATUS, new Byte(value), new Byte(ovalue));
|
||||
STATUS, Byte.valueOf(value), Byte.valueOf(ovalue));
|
||||
this.status = value;
|
||||
}
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ public class LocationMarshaller extends InvocationMarshaller
|
||||
{
|
||||
var listener3 :LocationMarshaller_MoveMarshaller = new LocationMarshaller_MoveMarshaller();
|
||||
listener3.listener = arg3;
|
||||
sendRequest(arg1, MOVE_TO, [ new Integer(arg2), listener3 ]);
|
||||
sendRequest(arg1, MOVE_TO, [ Integer.valueOf(arg2), listener3 ]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user