Prune trailing whitespace & foreachize loops.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5799 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -33,12 +33,12 @@ public class ObserverOps
|
||||
public Session (com.threerings.presents.client.Client client) {
|
||||
_client = client;
|
||||
}
|
||||
|
||||
|
||||
public boolean apply (SessionObserver obs) {
|
||||
notify(obs);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
protected abstract void notify (SessionObserver obs);
|
||||
|
||||
protected com.threerings.presents.client.Client _client;
|
||||
@@ -49,13 +49,13 @@ public class ObserverOps
|
||||
public Client (com.threerings.presents.client.Client client) {
|
||||
super(client);
|
||||
}
|
||||
|
||||
|
||||
@Override public void notify (SessionObserver obs) {
|
||||
if (obs instanceof ClientObserver) {
|
||||
notify((ClientObserver)obs);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected abstract void notify (ClientObserver obs);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class PeerSession extends PresentsSession
|
||||
// let the peer manager know that we're here
|
||||
_peermgr.peerStartedSession(this);
|
||||
}
|
||||
|
||||
|
||||
@Override // from PresentsSession
|
||||
protected void sessionConnectionClosed ()
|
||||
{
|
||||
|
||||
@@ -100,9 +100,9 @@ public class ClassUtil
|
||||
public static Method findMethod (Class<?> clazz, String name)
|
||||
{
|
||||
Method[] methods = clazz.getMethods();
|
||||
for (int i = 0; i < methods.length; i++) {
|
||||
if (methods[i].getName().equals(name)) {
|
||||
return methods[i];
|
||||
for (Method method : methods) {
|
||||
if (method.getName().equals(name)) {
|
||||
return method;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -48,7 +48,7 @@ public abstract class PersistingUnit extends Invoker.Unit
|
||||
super(name);
|
||||
_listener = listener;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a persisting unit with the supplied name and listener and a set of key/value pairs
|
||||
* that will be included in the failure message if this unit fails.
|
||||
|
||||
Reference in New Issue
Block a user