I swear this was generating unchecked type warnings before, but it seems not to

be now.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5596 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-12-11 01:21:45 +00:00
parent 47216207b3
commit 82da1521f3
2 changed files with 4 additions and 4 deletions
@@ -46,8 +46,8 @@ public class CrowdObjectAccess
// documentation inherited from interface
public boolean allowSubscribe (DObject object, Subscriber<?> sub)
{
if (ProxySubscriber.class.isInstance(sub)) {
ClientObject co = ProxySubscriber.class.cast(sub).getClientObject();
if (sub instanceof ProxySubscriber) {
ClientObject co = ((ProxySubscriber)sub).getClientObject();
return ((PlaceObject)object).occupants.contains(co.getOid());
}
return true;