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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user