Fixed a bunch of type safety bits pointed out by the latest version of Eclipse.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5274 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-30 12:58:51 +00:00
parent ca4c5897fb
commit 725f656197
77 changed files with 248 additions and 250 deletions
@@ -43,10 +43,11 @@ public class CrowdObjectAccess
public static AccessController PLACE = new AccessController()
{
// documentation inherited from interface
public boolean allowSubscribe (DObject object, Subscriber sub)
public boolean allowSubscribe (DObject object, Subscriber<?> sub)
{
if (sub instanceof CrowdClient) {
ClientObject co = ((CrowdClient)sub).getClientObject();
if (CrowdClient.class.isInstance(sub)) {
@SuppressWarnings("unchecked") ClientObject co =
((CrowdClient)sub).getClientObject();
return ((PlaceObject)object).occupants.contains(co.getOid());
}
return true;