Use our standard loop idioms.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6079 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2010-06-14 23:30:47 +00:00
parent 129023182c
commit 5a02c42c21
@@ -463,15 +463,14 @@ public class DObject
return;
}
int llength = _listeners.length;
for (int i = 0; i < llength; i++) {
Object listener = _listeners[i];
for (int ii = 0, ll = _listeners.length; ii < ll; ii++) {
Object listener = _listeners[ii];
if (listener == null) {
continue;
}
if (listener instanceof WeakReference) {
if ((listener = ((WeakReference<?>)listener).get()) == null) {
_listeners[i] = null;
_listeners[ii] = null;
continue;
}
}