Peskily, Eclipse and javac disagreed about whether this unchecked suppression

was necessary (javac claimed it was, Eclipse claimed it wasnt'). Fortunately,
we can do everything with Class<FooClient> methods that avoid the need for
supression entirely.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5275 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-30 13:05:16 +00:00
parent 725f656197
commit bda7d04f4c
2 changed files with 2 additions and 3 deletions
@@ -75,7 +75,7 @@ public class PresentsObjectAccess
boolean allowed = true;
// if the subscriber is a client, ensure that they are this same user
if (PresentsClient.class.isInstance(sub)) {
@SuppressWarnings("unchecked") PresentsClient client = (PresentsClient)sub;
PresentsClient client = PresentsClient.class.cast(sub);
allowed = (client.getClientObject() == object);
if (!allowed) {
log.warning("Refusing ClientObject subscription request " +