Chipping away at proper type safety for all of the Narya code.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4232 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-06-27 17:46:36 +00:00
parent 54db9d7d4e
commit 0a5953bf17
6 changed files with 46 additions and 46 deletions
@@ -649,7 +649,7 @@ public class Client
* Used to notify client observers of events.
*/
protected class Notifier
implements ObserverList.ObserverOp
implements ObserverList.ObserverOp<SessionObserver>
{
public Notifier (int code, Exception cause)
{
@@ -663,9 +663,8 @@ public class Client
return _rejected;
}
public boolean apply (Object observer)
public boolean apply (SessionObserver obs)
{
SessionObserver obs = (SessionObserver)observer;
switch (_code) {
case CLIENT_DID_LOGON:
obs.clientDidLogon(Client.this);
@@ -748,8 +747,8 @@ public class Client
protected int[] _ports;
/** Our list of client observers. */
protected ObserverList _observers =
new ObserverList(ObserverList.SAFE_IN_ORDER_NOTIFY);
protected ObserverList<SessionObserver> _observers =
new ObserverList<SessionObserver>(ObserverList.SAFE_IN_ORDER_NOTIFY);
/** The entity that manages our network communications. */
protected Communicator _comm;