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:
@@ -74,8 +74,8 @@ public class PresentsObjectAccess
|
||||
public boolean allowSubscribe (DObject object, Subscriber<?> sub)
|
||||
{
|
||||
// if the subscriber is a client, ensure that they are this same user
|
||||
if (ProxySubscriber.class.isInstance(sub)) {
|
||||
ClientObject clobj = ProxySubscriber.class.cast(sub).getClientObject();
|
||||
if (sub instanceof ProxySubscriber) {
|
||||
ClientObject clobj = ((ProxySubscriber)sub).getClientObject();
|
||||
if (clobj != object) {
|
||||
log.warning("Refusing ClientObject subscription request",
|
||||
"obj", ((ClientObject)object).who(), "sub", clobj.who());
|
||||
|
||||
Reference in New Issue
Block a user