Remove now spurious casts

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6016 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Dave Hoover
2010-01-13 19:19:15 +00:00
parent c4d132b232
commit 1926012bc5
4 changed files with 6 additions and 8 deletions
@@ -174,7 +174,7 @@ public class PlaceManager
// update the canonical copy // update the canonical copy
_occInfo.put(info.getBodyOid(), info); _occInfo.put(info.getBodyOid(), info);
// clone the canonical copy and send an event updating the distributed set with that clone // clone the canonical copy and send an event updating the distributed set with that clone
_plobj.updateOccupantInfo((OccupantInfo)info.clone()); _plobj.updateOccupantInfo(info.clone());
return true; return true;
} }
@@ -322,7 +322,7 @@ public class PlaceManager
_plobj.startTransaction(); _plobj.startTransaction();
try { try {
addOccupantInfo(body, (OccupantInfo)info.clone()); addOccupantInfo(body, info.clone());
} finally { } finally {
_plobj.commitTransaction(); _plobj.commitTransaction();
} }
@@ -1185,7 +1185,7 @@ public abstract class PeerManager
// take a snapshot of the set of subscriber client oids; we will act when all of them // take a snapshot of the set of subscriber client oids; we will act when all of them
// ratify // ratify
_remoids = (ArrayIntSet)_suboids.clone(); _remoids = _suboids.clone();
// schedule a timeout to act if something goes wrong // schedule a timeout to act if something goes wrong
(_timeout = _omgr.newInterval(new Runnable () { (_timeout = _omgr.newInterval(new Runnable () {
@@ -174,7 +174,7 @@ public class ConnectionManager extends LoopingThread
_stats.overQueueSize += oq.size(); _stats.overQueueSize += oq.size();
} }
} }
return (ConMgrStats)_stats.clone(); return _stats.clone();
} }
/** /**
@@ -186,8 +186,7 @@ public class MessageBundle
* @param includeParent if true, messages from our parent bundle (and its * @param includeParent if true, messages from our parent bundle (and its
* parent bundle, all the way up the chain will be included). * parent bundle, all the way up the chain will be included).
*/ */
public void getAll (String prefix, Collection<String> messages, public void getAll (String prefix, Collection<String> messages, boolean includeParent)
boolean includeParent)
{ {
Enumeration<String> iter = _bundle.getKeys(); Enumeration<String> iter = _bundle.getKeys();
while (iter.hasMoreElements()) { while (iter.hasMoreElements()) {
@@ -208,8 +207,7 @@ public class MessageBundle
* @param includeParent if true, messages from our parent bundle (and its * @param includeParent if true, messages from our parent bundle (and its
* parent bundle, all the way up the chain will be included). * parent bundle, all the way up the chain will be included).
*/ */
public void getAllKeys (String prefix, Collection<String> keys, public void getAllKeys (String prefix, Collection<String> keys, boolean includeParent)
boolean includeParent)
{ {
Enumeration<String> iter = _bundle.getKeys(); Enumeration<String> iter = _bundle.getKeys();
while (iter.hasMoreElements()) { while (iter.hasMoreElements()) {